From 5ea6368a10e76c713005ae36ee11f85e45a29070 Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Wed, 18 May 2022 12:14:49 +0200 Subject: [PATCH] MOBILE-4078 urlschemes: Change regular expression to remove useless characters --- src/core/services/urlschemes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/services/urlschemes.ts b/src/core/services/urlschemes.ts index 131d2d41c..bbaf2f91c 100644 --- a/src/core/services/urlschemes.ts +++ b/src/core/services/urlschemes.ts @@ -108,7 +108,7 @@ export class CoreCustomURLSchemesProvider { // Some platforms like Windows add a slash at the end. Remove it. // Some sites add a # at the end of the URL. If it's there, remove it. - url = url.replace(/\/?#?\/?$/, ''); + url = url.replace(/\/?(#.*)?\/?$/, ''); const modal = await CoreDomUtils.showModalLoading(); let data: CoreCustomURLSchemesParams;