fix bookmarklet script

Fix '&' bug in parameter
This commit is contained in:
Kunwoo Ahn 2021-04-16 21:24:51 +09:00 committed by GitHub
parent 687c34af3e
commit b6ee7d291e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>