[openstreetmap/openstreetmap-website] Don't do partial renders for turbo page visits (PR #6187)
Tom Hughes
notifications at github.com
Sun Jul 13 20:39:59 UTC 2025
tomhughes left a comment (openstreetmap/openstreetmap-website#6187)
I've added that in now although I don't think it's a perfect solution - it restore the CSRF meta tags which is the immediate problem here but there's lots of other stuff that gets lost from the `head` element.
In principle the `yield :head` lets you add stuff in but that requires you to have been able to call `content_for :head` without having to add it to every individual page but that would have to be done from the layout which we're not in control of.
If it proves to be a problem then we could replace their special layout with one of our own that includes a fuller `head` element without all the rest of the layout.
You do of course still get the rest of the page outside the layout in any case.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6187#issuecomment-3067289617
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6187/c3067289617 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250713/5c550569/attachment.htm>
More information about the rails-dev
mailing list