mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02: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 (
|
return (
|
||||||
<ToolbarItem className={tabClasses()}>
|
<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}
|
{children}
|
||||||
</Link>
|
</Link>
|
||||||
</ToolbarItem>
|
</ToolbarItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user