Merge pull request #3866 from alfonso-salces/MOBILE-4478

MOBILE-4478 link.ts: Avoid navigate to decoded links
This commit is contained in:
Dani Palou 2023-11-28 16:24:08 +01:00 committed by GitHub
commit 825ae4ad7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);