fix(link): Allow external links containing # to open

This commit is contained in:
SiriusXT 2025-06-04 14:57:13 +08:00
parent a5ba1b0489
commit 69d1c1519f

View File

@ -211,7 +211,7 @@ export function parseNavigationStateFromUrl(url: string | undefined) {
}
// Exclude external links that contain #
if (hashIdx !== 0 && !url.includes("/#root")) {
if (hashIdx !== 0 && !url.includes("/#root") && !url.includes("/#?searchString")) {
return {};
}