Files
linkvault/app/templates
Erik Thiele 547374aa6d Fix facet_sort dropdown silently failing to navigate
The onchange handler used `new URL(location)`. Inline event handler
attributes execute inside an implicit `with(document){...}` scope, and
`document.URL` is a built-in string property — so the bare `URL`
identifier resolved to that string instead of the global URL
constructor, throwing "URL is not a constructor" on every change.
The error wasn't visible anywhere in the UI, so the dropdown appeared
to update (its own selected option changed) while the page silently
never navigated, and a reload reverted it to the default.

Fix: reference `window.URL` explicitly to bypass the shadowing.
Verified the dropdown now actually re-sorts the sidebar and the
change survives a reload on both the Links and Prompts pages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 13:02:08 +02:00
..
2026-07-31 12:14:37 +02:00