Project

General

Profile

Actions

Bug #32964

open

New Host Details page - no 'back' button support

Added by Partha Aji over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The new host details page does not provide a way to track the current tab via the URL. This means we are unable to handle the browser's back button.
A solution has been attempted here https://github.com/Katello/katello/blob/master/webpack/components/RoutedTabs/RoutedTabs.js . Might be a good idea to add this component in the main foreman React registry and use it for host details page in place of https://github.com/theforeman/foreman/blob/develop/webpack/assets/javascripts/react_app/components/HostDetails/index.js#L135

In addition we need to modify the RoutedTab component to work with subtabs (may be using like id prefixes like `#content/packages` or `#content/errata` etc.)

Steps to repro:

  • Click on the New Host Details page
  • Click different tabs (Overview followed by content or subscriptions)
  • Notice the URL does not change in the browser
  • Hit the back button
  • Notice it goes back to the hosts list page.

No data to display

Actions

Also available in: Atom PDF