fix backlink from search tables

This commit is contained in:
typescreep
2025-10-07 14:31:13 +03:00
parent baa2255a4d
commit e49394661d

View File

@@ -32,7 +32,7 @@ export const getBackLinkToBuiltinTable = ({
searchMount?: boolean
}): string => {
if (searchMount) {
return fullPath
return encodeURIComponent(fullPath)
}
const root = `${baseprefix}${inside ? '/inside' : ''}/${cluster}`
const mainRoute = `${root}${namespace ? `/${namespace}` : ''}${syntheticProject ? `/${syntheticProject}` : ''}`
@@ -64,7 +64,7 @@ export const getBackLinkToApiTable = ({
searchMount?: boolean
}): string => {
if (searchMount) {
return fullPath
return encodeURIComponent(fullPath)
}
const root = `${baseprefix}${inside ? '/inside' : ''}/${cluster}`