Skip to content
Snippets Groups Projects
Commit b52ad72f authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #848

parent efcdcfda
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment