MOBILE-3039 core: Fix redirect treated again when it shouldn't

main
Dani Palou 2019-05-31 08:31:42 +02:00
parent 2ad861b1e4
commit 06a4c357d9
1 changed files with 4 additions and 1 deletions

View File

@ -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.