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

Use internal URL shortener for URL on the share page #22

Open
azvoleff opened this issue Dec 9, 2020 · 0 comments
Open

Use internal URL shortener for URL on the share page #22

azvoleff opened this issue Dec 9, 2020 · 0 comments
Assignees

Comments

@azvoleff
Copy link
Contributor

azvoleff commented Dec 9, 2020

Not an immediate need, but on the "share" tool, the URL should be shortened to be more email friendly. To do this well without running into issues with external shorteners being blocked, I'd suggest we add an API endpoint, so that urls like:

https://foodsecurityiap.resilienceatlas.org/map?tab=layers&center=lat%3D-0.7470491450051796%26lng%3D15.402832031250002&layers=%5B%7B%22id%22%3A1458%2C%22opacity%22%3A1%2C%22order%22%3A0%7D%2C%7B%22id%22%3A1463%2C%22opacity%22%3A1%2C%22order%22%3A1%7D%5D&zoom=5#

could instead be something like:

https://foodsecurityiap.resilienceatlas.org/share/2sk4c8

This could be implemented by adding a table of share links, so that the id passed to the share endpoint could automatically pull up the correct long version of the link noted above

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

No branches or pull requests

2 participants