Skip to content

Commit 8f94aba

Browse files
committed
add comment
1 parent a8962e1 commit 8f94aba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/svelte.dev/src/routes/docs/[...path]/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
3030
const elements = document.querySelectorAll('*[id]');
3131
// 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
3234
for (const el of elements) {
3335
if (el.id === hash) {
3436
return;

0 commit comments

Comments
 (0)