Make the bookmarklet compatible with ugly URLs

This commit is contained in:
Pierre Rudloff 2020-10-22 01:36:00 +02:00
parent d97b824a44
commit e1d7ad44e0
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@
<div id="bookmarklet" class="bookmarklet_wrapper">
<p> {t}Drag this to your bookmarks bar:{/t} </p>
<a class="bookmarklet small-font"
href="javascript:window.location='{$domain}{path_for name='info'}?url='+encodeURIComponent(location.href);">{t}Bookmarklet{/t}</a>
href="javascript:window.location='{$domain}{path_for name='info' queryParams=['url' => '%url%']}'.replace('%url%', encodeURIComponent(location.href));">{t}Bookmarklet{/t}</a>
</div>
</main>