Skip to content

fix(map): preserve search queries in shared URLs - #304

Merged
yakew7 merged 1 commit into
StudentSuite:mainfrom
KingEmma7:fix/map-search-share-query
Oct 23, 2026
Merged

yakew7 merged 1 commit into
StudentSuite:mainfrom
KingEmma7:fix/map-search-share-query

Conversation

@KingEmma7

Copy link
Copy Markdown

What this changes

Keep q in the map URL and Share link, using the same debounced query as the displayed results. Opening /map?q=library, editing the search, and reloading a shared link now preserve the search alongside the existing filters, focused place, and viewport.

Fixes #289.

Type of change

  • New public place(s)
  • New or updated benefit guide
  • New or updated resource link
  • Code or fix
  • Docs

Proof (required for new public places)

Not applicable; no place data changed.

Validation

  • npm run lint, npx tsc --noEmit, npm run format:check, npm run validate, and npm run build passed.
  • npm run test:unit: 578 tests passed. Added query round-trip and component regressions that fail on the original behavior.
  • Verified localhost desktop/mobile search, debounce, clearing, clipboard Share, fresh-load/reload, special characters, and preservation of the other map URL values.

No MapTiler key was configured, so map tiles and panning were not tested. The existing server/client result-count hydration warning also occurs on the unchanged base.

Checklist

  • No copyrighted files added; resource and paper changes are links only.
  • No em dashes in any copy.

@vercel

vercel Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

@KingEmma7 is attempting to deploy a commit to the studentsuite Team on Vercel.

A member of the Team first needs to authorize it.

@yakew7
yakew7 merged commit f2586c9 into StudentSuite:main Oct 23, 2026
4 of 5 checks passed
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.

/map?q= is stripped from the URL, so searches cannot be shared

2 participants