MOBILE-3412 core: Fix auto-login for H5P activity

main
Dani Palou 2020-06-09 09:57:13 +02:00
parent 159056a6fb
commit 5978f25495
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ export class CoreSite {
this.lastAutoLogin = this.timeUtils.timestamp();
return data.autologinurl + '?userid=' + userId + '&key=' + data.key + '&urltogo=' + url;
return data.autologinurl + '?userid=' + userId + '&key=' + data.key + '&urltogo=' + encodeURIComponent(url);
}).catch(() => {
// Couldn't get autologin key, return the same URL.