MOBILE-3068 core: Decode URL params on links handlers
parent
1c088deeed
commit
2c63478f47
|
@ -50,7 +50,7 @@ export class AddonModWikiEditLinkHandler extends CoreContentLinksHandlerBase {
|
|||
|
||||
let section = '';
|
||||
if (typeof params.section != 'undefined') {
|
||||
section = this.textUtils.decodeURIComponent(params.section.replace(/\+/g, ' '));
|
||||
section = params.section.replace(/\+/g, ' ');
|
||||
}
|
||||
|
||||
const pageParams = {
|
||||
|
|
|
@ -79,7 +79,7 @@ export class CoreUrlUtilsProvider {
|
|||
}
|
||||
|
||||
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) {
|
||||
params[key] = params[key].replace(subParamsPlaceholder, subParams);
|
||||
|
|
Loading…
Reference in New Issue