Skip to content

fix(catalog): keep manually selected app categories shareable after reload - #75

Merged
appdevelopsk merged 2 commits into
mainfrom
fix/catalog-filter-url-state-20261107
Nov 6, 2026
Merged

appdevelopsk merged 2 commits into
mainfrom
fix/catalog-filter-url-state-20261107

Conversation

@appdevelopsk

Copy link
Copy Markdown
Owner

Fixes catalog UX: arriving from a guide with ?goal=habits and then selecting a different category did not update the URL. Refreshing the page reverted to the stale category, and sharing the link selected the wrong filter. Add a small syncGoalUrl() helper that updates only the allowlisted category via history.replaceState, preserving unrelated URL query parameters, hash and session history state. Runs after manual category clicks and empty-state reset. Does not put search text or PII in URLs. Preserves 92 store cards, 5 spotlight links, existing analytics events and categories. Two source regression checks added (9 tests in guide QA module; full test suite not executed). Four focused Node.js VM tests of the same URL-sync helper executed locally: 4/4 PASS (changing category, all reset, UTM preserved, hash preserved). No GitHub Actions, browser/GA4 validation or deployment claimed.

@appdevelopsk
appdevelopsk marked this pull request as ready for review November 6, 2026 23:45
@appdevelopsk
appdevelopsk merged commit f18a978 into main Nov 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant