Skip to content

Commit

Permalink
feat: app redirects replace location
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmezzomo authored and pfferrari committed Jan 21, 2025
1 parent f1e0329 commit 3c1bb0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/sku_lists/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const App: FC<AppProps> = ({ routerBase }) => {
<Router base={routerBase}>
<Switch>
<Route path={appRoutes.home.path}>
<Redirect to={appRoutes.list.path} />
<Redirect to={appRoutes.list.path} replace={true} />
</Route>
<Route path={appRoutes.list.path} component={SkuListsList} />
<Route path={appRoutes.details.path} component={SkuListDetails} />
Expand Down
2 changes: 1 addition & 1 deletion apps/skus/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const App: FC<AppProps> = ({ routerBase }) => {
<Router base={routerBase}>
<Switch>
<Route path={appRoutes.home.path}>
<Redirect to={appRoutes.list.path} />
<Redirect to={appRoutes.list.path} replace={true} />
</Route>
<Route path={appRoutes.list.path} component={SkusList} />
<Route path={appRoutes.filters.path} component={Filters} />
Expand Down

0 comments on commit 3c1bb0c

Please sign in to comment.