]> git.openstreetmap.org Git - rails.git/commit
Don't do partial renders for turbo page visits
authorTom Hughes <tom@compton.nu>
Sat, 12 Jul 2025 14:30:25 +0000 (15:30 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 16 Jul 2025 19:43:43 +0000 (20:43 +0100)
commit9ee3f3f83bcd98b7b15103f1bd74578c29338af1
tree16a3557381d0a19a649e6ef073d1547318243e56
parent0b805abec2ef24ef6f493b730729c1de60103661
Don't do partial renders for turbo page visits

Setting turbo-action=advance as our pagination helper does causes
a frame navigation to be promoted to a page visit which means turbo
will try and merge the head elements and remove meta and link elements
which are missing from the turbo response.

In order to avoid breaking things we need to ensure we send the full
head element in such cases or things like the CSRF token will be lost.

Fixes #6172
app/controllers/diary_entries_controller.rb
app/controllers/issues_controller.rb
app/controllers/traces_controller.rb
app/controllers/user_blocks_controller.rb
app/controllers/users/diary_comments_controller.rb
app/controllers/users/issued_blocks_controller.rb
app/controllers/users/lists_controller.rb
app/controllers/users/received_blocks_controller.rb