Skip to content

Commit

Permalink
Merge pull request #3866 from alfonso-salces/MOBILE-4478
Browse files Browse the repository at this point in the history
MOBILE-4478 link.ts: Avoid navigate to decoded links
  • Loading branch information
dpalou authored Nov 28, 2023
2 parents 33b0afd + 8eeac15 commit 825ae4a
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 825ae4a

Please sign in to comment.