1
0
Fork 0
mirror of synced 2024-07-06 06:50:42 +12:00

Merge pull request #708 from dryrain39/dryrain39-dev

fix bookmarklet script
This commit is contained in:
Nick Sweeting 2021-04-16 12:53:14 -04:00 committed by GitHub
commit 5a66e8a483
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>