Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes SentateURL by creating a redirect page and function #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhik
Copy link
Member

@zhik zhik commented Nov 8, 2023

Fixes #89 by creating an extra property redirectUrl for layers that does a lookup for the NYSenate url via the https://pubgeo.nysenate.gov/api/v2/map/senate endpoint.

See docs for the endpoint here

The redirectUrl is activated when /?redirect query parameter exist in the url.

A screenshot of the redirect page. First line reads "You are being redirected..." Second line is an error message "If you are stuck, try the following: url to webpage"

@evadecker
Copy link
Contributor

@zhik Do we need to redirect users? The original district URLs should be restored soon: nysenate/NYSenate.gov-Website-D9#41

@evadecker
Copy link
Contributor

The district URLs are working correctly now, without redirects:

https://boundaries.beta.nyc/?map=ss
https://www.nysenate.gov/district/20

senate-links.mov

@zhik
Copy link
Member Author

zhik commented Nov 17, 2023

Great. I will undo the changes but keep the function to redirect for other district types.

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.

NYSenate Links no longer work
2 participants