[openstreetmap-website] Short links with layers parameter don't work (#762)
Martin Raifer
notifications at github.com
Tue Jun 17 09:58:31 UTC 2014
1. have a non-default layer active (for example the notes layer)
2. click share, use the short-link
3. paste the link in another browser (I was using chromium 34)
4. map isn't set to the previously chosen location
Alternatively: the short-link http://osm.org/go/0E6C6h6a--?layers=N should redirect one to somewhere around Amsterdam, but doesn't.
The cause seems to be that short-urls are redirected to something like: `http://www.openstreetmap.org/?layers=N#map=15/52.05429553985596/5.093429088592529` and the non-hash part of this link (`http://www.openstreetmap.org/?layers=N`) is then redirected to a link with a different hash: `http://www.openstreetmap.org/#layers=N`. The browser now can't know what to do with the two different hashes. The solution should be to redirect to an url with the correct hash in the first step: `http://www.openstreetmap.org/?#map=15/52.05429553985596/5.093429088592529&layers=N`
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/762
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140617/80ee92f1/attachment.html>
More information about the rails-dev
mailing list