Turbo: Redirects cause double rendering

Created on 28 October 2023, about 1 year ago
Updated 3 March 2024, 9 months ago

Problem/Motivation

At the time of writing, a redirect causes the turbo:before-render and turbo:render to trigger twice, which causes behaviours to detach, attach, detach, and attach again.

Steps to reproduce

Click a redirect link with the browser dev tools console open, looking at debug messages we have in our JavaScript.

Proposed resolution

Doing a search for "redirect" in the Turbo issues yields a few results that seem to indicate this is a known problem with Turbo and not on our end:

Remaining tasks

Work around it ourselves and/or wait for Turbo to implement a fix.

User interface changes

None other than hopefully no weird breaking due to double detach/attach.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada ambient.impact Toronto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024