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;