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 a8962e1 commit 8f94abaCopy full SHA for 8f94aba
apps/svelte.dev/src/routes/docs/[...path]/+page.svelte
@@ -29,6 +29,8 @@
29
30
const elements = document.querySelectorAll('*[id]');
31
// if there's an exact match, use that. no need to redirect
32
+ // also handles the case where one appears twice with difference casing
33
+ // e.g. https://svelte.dev/docs/kit/@sveltejs-kit#redirect vs https://svelte.dev/docs/kit/@sveltejs-kit#Redirect
34
for (const el of elements) {
35
if (el.id === hash) {
36
return;
0 commit comments