diff --git a/ui/pages/permissions-connect/permissions-connect.component.js b/ui/pages/permissions-connect/permissions-connect.component.js index 9f3ef7592..4eaf97c6c 100644 --- a/ui/pages/permissions-connect/permissions-connect.component.js +++ b/ui/pages/permissions-connect/permissions-connect.component.js @@ -116,7 +116,7 @@ export default class PermissionConnect extends Component { getRequestAccountTabIds(); if (!permissionsRequest) { - history.push(DEFAULT_ROUTE); + history.replace(DEFAULT_ROUTE); return; } @@ -130,17 +130,17 @@ export default class PermissionConnect extends Component { switch (requestType) { case 'wallet_installSnap': - history.push(snapInstallPath); + history.replace(snapInstallPath); break; case 'wallet_updateSnap': - history.push(snapUpdatePath); + history.replace(snapUpdatePath); break; case 'wallet_installSnapResult': - history.push(snapResultPath); + history.replace(snapResultPath); break; default: ///: END:ONLY_INCLUDE_IN - history.push(confirmPermissionPath); + history.replace(confirmPermissionPath); ///: BEGIN:ONLY_INCLUDE_IN(flask) } ///: END:ONLY_INCLUDE_IN