1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

fix: bypass router cache on back() in popout (#16453)

This commit is contained in:
Andreas Coroiu
2025-09-18 13:51:51 +02:00
committed by GitHub
parent 3a2bee9444
commit dfebfb6b7e

View File

@@ -105,6 +105,11 @@ export class PopupRouterCacheService {
* Navigate back in history * Navigate back in history
*/ */
async back() { async back() {
if (!BrowserPopupUtils.inPopup(window)) {
this.location.back();
return;
}
const history = await this.state.update((prevState) => const history = await this.state.update((prevState) =>
prevState ? prevState.slice(0, -1) : [], prevState ? prevState.slice(0, -1) : [],
); );