|
@@ -44,7 +44,11 @@
|
|
|
}else{
|
|
|
console.log(encodeURIComponent(JSON.stringify(filedata)));
|
|
|
ao_module_setWindowSize(1060, 680);
|
|
|
- window.location.href= window.location.href + "/embedded.html#" + encodeURIComponent(JSON.stringify(filedata));
|
|
|
+ let redirectionURL = "embedded.html#" + encodeURIComponent(JSON.stringify(filedata));
|
|
|
+ if (window.location.href.substr(window.location.href.length - 1) != "/"){
|
|
|
+ redirectionURL = "/" + redirectionURL;
|
|
|
+ }
|
|
|
+ window.location.href= window.location.href + redirectionURL;
|
|
|
}
|
|
|
}
|
|
|
</script>
|