We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f94aba commit 84c617eCopy full SHA for 84c617e
apps/svelte.dev/src/routes/docs/[...path]/+page.svelte
@@ -38,7 +38,7 @@
38
}
39
for (const el of elements) {
40
if (el.id.toLocaleLowerCase() === hash.toLocaleLowerCase()) {
41
- const url = $page.url;
+ const url = new URL($page.url);
42
url.hash = el.id;
43
return url;
44
0 commit comments