[openstreetmap/openstreetmap-website] Use settings for hardcoded URLs in Export (Issue #7215)

Lee Kindness notifications at github.com
Wed Jul 8 11:05:07 UTC 2026


wangi left a comment (openstreetmap/openstreetmap-website#7215)

Yeah, I wrote this one up in more generic terms, focussing on best practice of getting hardcoded URLs out of code, rather than my specific use case. I can do a gross text substitution in `export.html.erb` for that, but thought this one might benefit upstream.

I focussed only on the URLs because the title and description already have a relatively straightforward way to bulk edit them (lots of `sed`, or a script like [applyLocaleSubs.py](https://github.com/opengeofiction-net/OGF-terrain-tools/blob/master/bin/applyLocaleSubs.py)).

If a specific URL was missing/empty then the output for it could be skipped, coping with perhaps partial mapping of the four current links, and future additions. If Geofabrik were to cease offering the service then it's not unlikely that somebody else could setup with an alternative, or the URL updated to point to `https://download.bbbike.org`? Is the name too specific, it's really regional extracts?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7215#issuecomment-4914131470
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/7215/4914131470 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260708/825a3b6e/attachment.htm>


More information about the rails-dev mailing list