openstreetmap-tools/web/templates
Edward Betts c2355a053d Set page title server-side for link preview compatibility
When a specific relation URL is loaded, fetch_relation_name() makes a
lightweight GET /relation/{id}.json call to get the name tag and pass
it to the template. The <title> and og:title are then set server-side,
so forum link previews and crawlers see the route name in the HTML
without executing JavaScript.

Errors are swallowed silently so a slow or failed API response just
falls back to the default title.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 21:01:25 +00:00
..
api.html Use url_for() for all internal URLs; fix ProxyPass compatibility 2026-02-27 20:31:01 +00:00
index.html Set page title server-side for link preview compatibility 2026-02-27 21:01:25 +00:00