From 06a4c357d9000fbf3885594e00c945ae28cdc35e Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 31 May 2019 08:31:42 +0200 Subject: [PATCH] MOBILE-3039 core: Fix redirect treated again when it shouldn't --- src/core/mainmenu/pages/menu/menu.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/mainmenu/pages/menu/menu.ts b/src/core/mainmenu/pages/menu/menu.ts index 5f03fb21f..d06d413c2 100644 --- a/src/core/mainmenu/pages/menu/menu.ts +++ b/src/core/mainmenu/pages/menu/menu.ts @@ -171,7 +171,10 @@ export class CoreMainMenuPage implements OnDestroy { if (this.urlToOpen) { // There's a content link to open. - this.linksDelegate.getActionsFor(this.urlToOpen, undefined).then((actions) => { + const url = this.urlToOpen; + delete this.urlToOpen; + + this.linksDelegate.getActionsFor(url, undefined).then((actions) => { const action = this.linksHelper.getFirstValidAction(actions); if (action && action.sites.length) { // Action should only have 1 site because we're filtering by username.