Skip to content

Commit b6ee7d2

Browse files
authored
fix bookmarklet script
Fix '&' bug in parameter
1 parent 687c34a commit b6ee7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archivebox/templates/core/add.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>Add new URLs to your archive</h1>
4343
{% if absolute_add_path %}
4444
<center id="bookmarklet">
4545
<p>Bookmark this link to quickly add to your archive:
46-
<a href="javascript:void(window.open('{{ absolute_add_path }}?url='+document.location.href));">Add to ArchiveBox</a></p>
46+
<a href="javascript:void(window.open('{{ absolute_add_path }}?url='+encodeURIComponent(document.location.href)));">Add to ArchiveBox</a></p>
4747
</center>
4848
{% endif %}
4949
<script>

0 commit comments

Comments
 (0)