Skip to content

Commit 06a4c35

Browse files
committed
MOBILE-3039 core: Fix redirect treated again when it shouldn't
1 parent 2ad861b commit 06a4c35

File tree

1 file changed

+4
-1
lines changed
  • src/core/mainmenu/pages/menu

1 file changed

+4
-1
lines changed

src/core/mainmenu/pages/menu/menu.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ export class CoreMainMenuPage implements OnDestroy {
171171

172172
if (this.urlToOpen) {
173173
// There's a content link to open.
174-
this.linksDelegate.getActionsFor(this.urlToOpen, undefined).then((actions) => {
174+
const url = this.urlToOpen;
175+
delete this.urlToOpen;
176+
177+
this.linksDelegate.getActionsFor(url, undefined).then((actions) => {
175178
const action = this.linksHelper.getFirstValidAction(actions);
176179
if (action && action.sites.length) {
177180
// Action should only have 1 site because we're filtering by username.

0 commit comments

Comments
 (0)