Head merge issue with turbo frame navigation promoted to a page visit
Author: CervenkaCreated Apr 3, 2024Updated Sep 16, 2026
When using the data-turbo-action="advance" attribute the document's head is merged. (Handbook)
During that process meta-tags are removed from the head if the response's head doesn't include them. That includes meta-tags that may be required such as csrf-token or vapid-public-key.
I ran into this issue when using the custom layout provided by turbo-rails.
Thank you
Gems: turbo-rails (2.0.5)
Packges: @hotwired/turbo-rails@^8.0.4 @hotwired/turbo@^8.0.4
Source: hotwired/turbo