diff --git a/apps/browser/src/platform/popup/view-cache/popup-router-cache.service.ts b/apps/browser/src/platform/popup/view-cache/popup-router-cache.service.ts index b666e49c964..b545618c0ce 100644 --- a/apps/browser/src/platform/popup/view-cache/popup-router-cache.service.ts +++ b/apps/browser/src/platform/popup/view-cache/popup-router-cache.service.ts @@ -105,6 +105,11 @@ export class PopupRouterCacheService { * Navigate back in history */ async back() { + if (!BrowserPopupUtils.inPopup(window)) { + this.location.back(); + return; + } + const history = await this.state.update((prevState) => prevState ? prevState.slice(0, -1) : [], );