Turbo: Redirects cause double rendering

Created on 28 October 2023, 8 months ago
Updated 3 March 2024, 4 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.69.0 2024