diff --git a/server/src/main/resources/web/index.ftl b/server/src/main/resources/web/index.ftl
index 939dd79e..19688d40 100644
--- a/server/src/main/resources/web/index.ftl
+++ b/server/src/main/resources/web/index.ftl
@@ -48,6 +48,22 @@
+
@@ -258,6 +274,13 @@
return data;
});
+ $('#preview_by_url').submit(function() {
+ var _url = $("#_url").val();
+ var urlField = $(this).find('[name=url]');
+ var b64Encoded = Base64.encode(_url);
+ urlField.val(b64Encoded);
+ });
+
function showLoadingDiv() {
var height = window.document.documentElement.clientHeight - 1;