Project

General

Profile

Bug #22901

React components aren't loaded after hitting Back button on a turbolink

Added by Tomáš Strachota 7 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When a user navigates to some foreman page via a turbolink link and then hits Back button in the browser, the previous page is displayed without react components.

Steps to reproduce:
  1. Go to Administer >> Roles.
  2. Click on [Filters] button of one of the roles and let the page load.
  3. Check that react components like notification drawer and menu is working.
  4. Hit Back button in the browser.
  5. Result: The notification icon disappeared and the sub-menu is dysfunctional.

Another place where this can be reproduced is compute profiles page.

Associated revisions

Revision 15a7aeab (diff)
Added by Amir Fefer 7 months ago

Fixes #22901 - fix js execution after hitting back/forward

History

#1 Updated by Ohad Levy 7 months ago

Can this be related to recent turbolinks update?

#2 Updated by Amir Fefer 7 months ago

  • Assignee set to Amir Fefer

#3 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5328 added

#4 Updated by Ohad Levy 7 months ago

  • Legacy Backlogs Release (now unused) set to 330

#5 Updated by Amir Fefer 7 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF