Skip to content

fix(map): remove stale place ids from shared urls - #182

Open
techykaif wants to merge 1 commit into
StudentSuite:mainfrom
techykaif:fix/stale-place-url
Open

fix(map): remove stale place ids from shared urls#182
techykaif wants to merge 1 commit into
StudentSuite:mainfrom
techykaif:fix/stale-place-url

Conversation

@techykaif

Copy link
Copy Markdown
Contributor

What this changes

Fixes #149 by validating the place ID restored from the URL against the current place dataset.

If a shared link contains a deleted or renamed place ID, the map now drops that invalid focus instead of preserving a dead ?place= parameter.

The existing URL synchronization then produces a clean shareable URL.

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. This PR does not add or modify any public places.

Checklist

  • The site hosts no copyrighted files; resource and paper changes are links only.
  • No em dashes in any copy.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

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

A member of the Team first needs to authorize it.

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.

bug: stale ?place= IDs are never removed from the URL when the place no longer exists

1 participant