Skip to content

Commit 5978f25

Browse files
committed
MOBILE-3412 core: Fix auto-login for H5P activity
1 parent 159056a commit 5978f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/site.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ export class CoreSite {
18201820

18211821
this.lastAutoLogin = this.timeUtils.timestamp();
18221822

1823-
return data.autologinurl + '?userid=' + userId + '&key=' + data.key + '&urltogo=' + url;
1823+
return data.autologinurl + '?userid=' + userId + '&key=' + data.key + '&urltogo=' + encodeURIComponent(url);
18241824
}).catch(() => {
18251825

18261826
// Couldn't get autologin key, return the same URL.

0 commit comments

Comments
 (0)