Merge pull request #3283 from alfonso-salces/MOBILE-4078

MOBILE-4078 urlschemes: Change regular expression to remove useless c…
main
Dani Palou 2022-05-20 12:40:37 +02:00 committed by GitHub
commit a6d30a50c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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