Skip to content

Commit 1c08133

Browse files
authored
Merge pull request #1542 from devtron-labs/redirect-fix
fix: Not able to go back from app list page
2 parents f68c710 + 4eaf8fa commit 1c08133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/common/navigation/NavigationRoutes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,14 +524,14 @@ export function RedirectUserWithSentry({ isFirstLoginUser }) {
524524
}
525525

526526
export function RedirectToAppList() {
527-
const { push } = useHistory()
527+
const { replace } = useHistory()
528528
const { serverMode } = useContext(mainContext)
529529
useEffect(() => {
530530
let baseUrl = `${URLS.APP}/${URLS.APP_LIST}`
531531
if (serverMode == SERVER_MODE.FULL) {
532-
push(`${baseUrl}/${AppListConstants.AppType.DEVTRON_APPS}`)
532+
replace(`${baseUrl}/${AppListConstants.AppType.DEVTRON_APPS}`)
533533
} else {
534-
push(`${baseUrl}/${AppListConstants.AppType.HELM_APPS}`)
534+
replace(`${baseUrl}/${AppListConstants.AppType.HELM_APPS}`)
535535
}
536536
}, [])
537537
return null

0 commit comments

Comments
 (0)