[openstreetmap/openstreetmap-website] Stop arguments in path or query from being interpreted as hashes (PR #6613)
Marwin Hochfelsner
notifications at github.com
Tue Dec 16 07:00:29 UTC 2025
hlfan left a comment (openstreetmap/openstreetmap-website#6613)
> some more explanation
A #hashtag is led by the eponymous hash, which has a special meaning in URLs.
Because the value is not expected in the hash of the URL, links like
- https://www.color-hex.com/color/#76c551 and
- https://resultmaps.neis-one.org/osm-changesets?comment=#maproulette don't work
With the hash removed, the links to
- https://www.color-hex.com/color/76c551 and
- https://resultmaps.neis-one.org/osm-changesets?comment=maproulette work.
Why? Because in that case, the tag part of the hashtag actually lands where it's supposed to be, in the pathname or the query, not in the hash.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6613#issuecomment-3659110247
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6613/c3659110247 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251215/3ce592cc/attachment.htm>
More information about the rails-dev
mailing list