mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 10:38:15 -03:30
make current tab link replace instead of add new history item
This commit is contained in:
@@ -42,7 +42,7 @@ const DetailTab = ({ location, match, tab, currentTab, children, breadcrumb }) =
|
||||
|
||||
return (
|
||||
<ToolbarItem className={tabClasses()}>
|
||||
<Link to={{ pathname: `${match.url}`, search: updateTab(), state: { breadcrumb } }}>
|
||||
<Link to={{ pathname: `${match.url}`, search: updateTab(), state: { breadcrumb } }} replace={tab === currentTab}>
|
||||
{children}
|
||||
</Link>
|
||||
</ToolbarItem>
|
||||
|
||||
Reference in New Issue
Block a user