Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Update `Navigate` calls to use `replace: true` if used in a redirect context
  • Loading branch information
nickgros committed Feb 19, 2025
1 parent 44c00ab commit 5faa571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/portals/adknowledgeportal/src/config/routesConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const routes: RouteObject[] = [
modelADStrainsSelectedFacet.facetValue
}"]}]}`,
}}
replace={true}
/>
),
},
Expand All @@ -69,7 +70,7 @@ const routes: RouteObject[] = [
{
// PORTALS-2919: Redirect DataAccess/Instructions to /Data Access
path: 'DataAccess/Instructions',
element: <Navigate to="/Data Access" />,
element: <Navigate to="/Data Access" replace={true} />,
},
{
path: 'Explore',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function RedirectWithQuery(props: NavigateProps) {
return (
<Navigate
{...props}
replace={true}
to={{
pathname: props.to as string,
search,
Expand Down

0 comments on commit 5faa571

Please sign in to comment.