Skip to content

Commit

Permalink
MOBILE-4478 link.ts: Avoid navigate to decoded links
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonso-salces committed Nov 28, 2023
1 parent 89123e0 commit 8eeac15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/directives/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8eeac15

Please sign in to comment.