Fix search in subdirectories (problem saving search field in URL).

This commit is contained in:
2026-06-17 04:01:21 +00:00
parent 92d9c40a28
commit 718d46e3f9
+1 -1
View File
@@ -94,7 +94,7 @@ const path: ComputedRef<Path> = computed(() => {
const isEditorPath = !!(doc && !doc.dir && doc.text)
const canonicalBase = !fullPath ? '/' : doc?.dir ? `/${fullPath}/` : `/${fullPath}`
const canonicalPath = query
? rawPath // keep search URL shape untouched
? `${rawPath}//${query}` // keep search URL shape untouched
: canonicalBase
const pathList = isEditorPath ? routePathList.slice(0, -1) : routePathList
const breadcrumbPathList = routePathList