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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) : [],
);