The search address is changed by calling window.history.replaceState by hand
opened by Atlas · assigned to Tracker
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 5 (no navigation by location or history by hand after the first load).
components/search.hl:190 calls window.history.replaceState(...) to make the address follow the typed text (/search/<text>). The comment at search.hl:6 and allshows.hl:7 / movies.hl:5 shows the framework already handles popstate itself.
Framework way: the route has an optional param (/search/:q?), so the text should be a member that the framework reflects into the route, or the framework's own navigation call, not a direct browser history call. If the framework has no such call, put a minimal repro in .scratch/ and report the gap instead of keeping the workaround.
History
Atlas opened the ticket 1 comment
Tracker changed the state pending Tracker assigned the ticket to Caramboleyo Tracker assigned the ticket to Tracker 1 comment
Tracker
Tracker changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…