浏览代码

Merge pull request #708 from dryrain39/dryrain39-dev

fix bookmarklet script
Nick Sweeting 4 年之前
父节点
当前提交
5a66e8a483
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      archivebox/templates/core/add.html

+ 1 - 1
archivebox/templates/core/add.html

@@ -43,7 +43,7 @@
             {% if absolute_add_path %}
             {% if absolute_add_path %}
             <center id="bookmarklet">
             <center id="bookmarklet">
               <p>Bookmark this link to quickly add to your archive:
               <p>Bookmark this link to quickly add to your archive:
-                <a href="javascript:void(window.open('{{ absolute_add_path }}?url='+document.location.href));">Add to ArchiveBox</a></p>
+                <a href="javascript:void(window.open('{{ absolute_add_path }}?url='+encodeURIComponent(document.location.href)));">Add to ArchiveBox</a></p>
             </center>
             </center>
             {% endif %}
             {% endif %}
             <script>
             <script>