Skip to content

Commit 492a09b

Browse files
committed
fix: preserve catalog path resolution fallback
1 parent cec830b commit 492a09b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎hooks/use-table-catalog.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ export function useTableCatalog(catalogPrefix: string = TABLE_CATALOG_PREFIX) {
335335
catalogPrefixRef.current = normalizedCatalogPrefix
336336
}, [normalizedCatalogPrefix])
337337

338-
const requestUrl = useCallback((path: string) => api.resolveUrl(path), [api])
338+
const requestUrl = useCallback(
339+
(path: string) =>
340+
api.resolveUrl(path.startsWith("/") ? path : buildTableCatalogPath(path, catalogPrefixRef.current)),
341+
[api],
342+
)
339343

340344
const getCatalogConfig = useCallback(async () => {
341345
// The canonical config route is the discovery bootstrap. Operational

0 commit comments

Comments
 (0)