Browse Source

fix bookmarklet script

Fix '&' bug in parameter
Kunwoo Ahn 4 years ago
parent
commit
b6ee7d291e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/templates/core/add.html

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

@@ -43,7 +43,7 @@
             {% if absolute_add_path %}
             <center id="bookmarklet">
               <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>
             {% endif %}
             <script>