Actions
Bug #24345
closedBreadcrumbs isn't refreshed properly after visiting host edit form
Description
reproducing steps:
go to hosts > click edit > click submit > click the breadcrumb sibling selector and pick another host.
its lands in another_host/edit because it uses the breadcrumb-bar from the previews mounting.
another instance:
go to hosts > click edit > open a resource switcher, close it > click submit > click the breadcrumb sibling selector and pick another host, you end up in host instead of show.
This was partially workarounded by #23290 but then reverted because it caused a regression with vmware provisioning. As stated in the reverting PR, the real cause is probably not turbolinks+react, adding the comment here too
The real cause of wrong links in bredcrumb switcher is that we don't detect when switcherItemUrl changes and cached items should be reloaded. This condition should be updated to check it: https://github.com/theforeman/foreman/blob/develop/webpack/assets/javascripts/react_app/components/BreadcrumbBar/BreadcrumbBar.js#L17-L19
Actions