fix: replace current history entry on redirections

This commit is contained in:
Ali BARIN
2022-08-04 21:36:18 +02:00
parent 913a2773c1
commit 03efe3f0b3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ export default function Application(): React.ReactElement | null {
<Route
path="/"
element={(
<Navigate to={app.supportsConnections ? URLS.APP_CONNECTIONS(appKey) : URLS.APP_FLOWS(appKey)} />
<Navigate to={app.supportsConnections ? URLS.APP_CONNECTIONS(appKey) : URLS.APP_FLOWS(appKey)} replace />
)}
/>
</Routes>