aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2022-04-01 10:44:55 +0000
committerRon Lucke <lucke@elan-ev.de>2022-04-01 10:44:55 +0000
commitb52ad72f6376de2d6da34dc398b6357f5af57cac (patch)
tree68d3041ca4b6920a68993602ebfcdf80294cc90a
parentefcdcfdacb99fb538771a2f82981d4326c904ace (diff)
fix #848
-rwxr-xr-xresources/vue/components/courseware/CoursewareIframeBlock.vue13
1 files changed, 9 insertions, 4 deletions
diff --git a/resources/vue/components/courseware/CoursewareIframeBlock.vue b/resources/vue/components/courseware/CoursewareIframeBlock.vue
index 2035276..1f0f5bf 100755
--- a/resources/vue/components/courseware/CoursewareIframeBlock.vue
+++ b/resources/vue/components/courseware/CoursewareIframeBlock.vue
@@ -165,11 +165,16 @@ export default {
return this.block?.attributes?.payload?.cc_base;
},
activeUrl() {
- if (this.currentSubmitUserId) {
- return this.currentUrl + '?' + this.currentSubmitParam + '=' + md5(this.userId + this.currentSalt);
- } else {
- return this.currentUrl;
+ if (this.currentUrl) {
+ let url = new URL(this.currentUrl);
+ if (this.currentSubmitUserId === 'true') {
+ url.searchParams.append(this.currentSubmitParam, md5(this.userId + this.currentSalt));
+ }
+
+ return url.href;
}
+
+ return '';
},
},
mounted() {