mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
make current tab link replace instead of add new history item
This commit is contained in:
parent
27542ea322
commit
e5320b6fa6
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user