fix: replace current history entry on redirections
This commit is contained in:
@@ -165,7 +165,7 @@ export default function Application(): React.ReactElement | null {
|
|||||||
<Route
|
<Route
|
||||||
path="/"
|
path="/"
|
||||||
element={(
|
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>
|
</Routes>
|
||||||
|
@@ -34,7 +34,7 @@ export default (
|
|||||||
|
|
||||||
<Route path={URLS.UPDATES} element={<Layout><Notifications /></Layout>} />
|
<Route path={URLS.UPDATES} element={<Layout><Notifications /></Layout>} />
|
||||||
|
|
||||||
<Route path="/" element={<Navigate to={URLS.FLOWS} />} />
|
<Route path="/" element={<Navigate to={URLS.FLOWS} replace />} />
|
||||||
|
|
||||||
<Route path={`${URLS.SETTINGS}`}>
|
<Route path={`${URLS.SETTINGS}`}>
|
||||||
{settingsRoutes}
|
{settingsRoutes}
|
||||||
|
@@ -8,6 +8,6 @@ export default (
|
|||||||
<>
|
<>
|
||||||
<Route path={URLS.SETTINGS_PROFILE} element={<SettingsLayout><ProfileSettings /></SettingsLayout>} />
|
<Route path={URLS.SETTINGS_PROFILE} element={<SettingsLayout><ProfileSettings /></SettingsLayout>} />
|
||||||
|
|
||||||
<Route path={URLS.SETTINGS} element={<Navigate to={URLS.SETTINGS_PROFILE} />} />
|
<Route path={URLS.SETTINGS} element={<Navigate to={URLS.SETTINGS_PROFILE} replace />} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user