From 8eeac151367b4cfb32a859f513c704844117ff34 Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Tue, 28 Nov 2023 15:07:46 +0100 Subject: [PATCH] MOBILE-4478 link.ts: Avoid navigate to decoded links --- src/core/directives/link.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/directives/link.ts b/src/core/directives/link.ts index 7511193d1fc..daac1bc795f 100644 --- a/src/core/directives/link.ts +++ b/src/core/directives/link.ts @@ -89,9 +89,7 @@ export class CoreLinkDirective implements OnInit { const openIn = this.element.getAttribute('data-open-in'); if (CoreUtils.isTrueOrOne(this.capture)) { - href = CoreTextUtils.decodeURI(href); - - const treated = await CoreContentLinksHelper.handleLink(href, undefined, true, true); + const treated = await CoreContentLinksHelper.handleLink(CoreTextUtils.decodeURI(href), undefined, true, true); if (!treated) { this.navigate(href, openIn);