You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried switching # to javascript:;, but Elm seems not to like it, reporting:
This is an XSS vector. Please use ports or web components instead.
I then tried to do the equivalent of event.preventDefault(), but couldn't get it to work.
It seems like switching onClick to onClickStop should work, but the behaviour persists either way.
I don't have enough experience with Elm to progress any further.
For whoever looks at this next, I found that the bug manifests differently when running locally.
Instead of having a # appear in the URL, the # is written to the end of the URL, all of which is then overwritten by a valid new one.
This manifests as two history entries. It's also possible to see the # appear briefly.
This means the bug only has symptoms in production, which is likely why it wasn't caught.
Description
Currently, changing the sort order results in an invalid URL.
This means if the page is reloaded, it is reset to an empty search.
As a result, bookmarking a search impossible.
I think this also means changing the sort order sometimes doesn't work in normal use either (i.e., without reloading).
Steps to Reproduce
boot.loader.systemd-boot
).#
before the?
in the URL.#
in the URL.relevance
.Potential Solution
This issue is caused by the
href="#"
attribute on the links (a
) rendered in the dropdown.It should be able to be fixed by:
href="javascript:;"
event.preventDefault()
1.For reference, the offending line is here.
If I have time today, I'll make a PR with the fix.
Footnotes
https://stackoverflow.com/a/48447130 ↩
The text was updated successfully, but these errors were encountered: