Skip to content

Commit

Permalink
fix pathname matching
Browse files Browse the repository at this point in the history
  • Loading branch information
estermv committed Oct 14, 2021
1 parent dbd4b7c commit 202bbb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const RouteInit: React.FC<RouteInitProps> = ({

// check if we need to redirect because of attempt at unsupported multi-cluster monitoring
const clusterSupported = cluster.isSupported || clusters.length === 1;
if (location.pathname !== 'home' && !clusterSupported) {
if (location.pathname !== '/home' && !clusterSupported) {
return <Redirect to="/home" />;
}
}
Expand Down

0 comments on commit 202bbb5

Please sign in to comment.