fix: Query not forwarded on internal links (#10854)

closes #10853
This commit is contained in:
Tom Moor
2025-12-10 21:17:12 -05:00
committed by GitHub
parent 6cd2346d46
commit 1e894aabdf

View File

@@ -37,7 +37,7 @@ export default function useEditorClickHandlers({ shareId }: Params) {
if (href[0] !== "/") {
try {
const url = new URL(href);
navigateTo = url.pathname + url.hash;
navigateTo = url.pathname + url.search + url.hash;
} catch (_err) {
navigateTo = href;
}