[SIEM] Fix host details page redirect (#48720)

This commit is contained in:
patrykkopycinski 2019-10-27 06:23:51 -07:00 committed by GitHub
parent f9b0a46dfd
commit 795d1caa5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,12 +229,12 @@ export const HostsContainer = React.memo<Props>(({ url }) => (
/>
<Route
path={`${url}/:detailName`}
render={({ location: { search = '' } }) => (
<Redirect
from={`${url}/:detailName`}
to={`${url}/:detailName/${HostsTableType.authentications}${search}`}
/>
)}
render={({
match: {
params: { detailName },
},
location: { search = '' },
}) => <Redirect to={`${url}/${detailName}/${HostsTableType.authentications}${search}`} />}
/>
<Route
path={`/${SiemPageName.hosts}/`}