MOBILE-3068 core: Decode URL params on links handlers

main
Pau Ferrer Ocaña 2019-08-26 15:20:51 +02:00
parent 1c088deeed
commit 2c63478f47
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ export class AddonModWikiEditLinkHandler extends CoreContentLinksHandlerBase {
let section = ''; let section = '';
if (typeof params.section != 'undefined') { if (typeof params.section != 'undefined') {
section = this.textUtils.decodeURIComponent(params.section.replace(/\+/g, ' ')); section = params.section.replace(/\+/g, ' ');
} }
const pageParams = { const pageParams = {

View File

@ -79,7 +79,7 @@ export class CoreUrlUtilsProvider {
} }
urlAndHash[0].replace(regex, (match: string, key: string, value: string): string => { urlAndHash[0].replace(regex, (match: string, key: string, value: string): string => {
params[key] = typeof value != 'undefined' ? value : ''; params[key] = typeof value != 'undefined' ? this.textUtils.decodeURIComponent(value) : '';
if (subParams) { if (subParams) {
params[key] = params[key].replace(subParamsPlaceholder, subParams); params[key] = params[key].replace(subParamsPlaceholder, subParams);