Direkte Verlinkbarkeit von Anträgen #132
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tobias/gwoe-antragspruefer#132
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kontext
Aktuell gibt es keine stabile URL pro Antrag. Links wie
/?drucksache=18/18081funktionieren nur wenn JS den Query-Parameter liest undshowDetail()aufruft — das passiert aber nicht bei Seitenload.Ziel
https://gwoe.toppyr.de/?drucksache=18/18081öffnet direkt die Detail-Ansicht des AntragsImplementierung
URLSearchParamsauslesen, wenndrucksachevorhanden →showDetail()nach LadenshowDetail():history.pushStatemit?drucksache=Xpopstate-Event: Detail bei Browser-Back schließenUmgesetzt + deployed:
URLSearchParams.get("drucksache")→showDetail()(war bereits implementiert, Zeile 1371-1376)showDetail:history.pushState({drucksache}, "", "/?drucksache=X")mit Guard gegen doppel-push (war bereits implementiert, Zeile 2319-2322)popstate-Listener — Browser-Back schließt Detail-Panel, räumtactive-Klasse aus Liste. Wenn URL noch Drucksache enthält, Detail neu öffnen (Vor/Zurück-Navigation zwischen Anträgen)history.pushState({}, "", window.location.pathname)wenn Detail via Escape geschlossen_origShowDetailentferntLive verifiziert:
curl https://gwoe.toppyr.de/?drucksache=18/18081→ 200, neuer Template enthältpopstate-Listener.Deployed als Template-only-Change (scripts/deploy.sh app/templates/index.html).