change export link

This commit is contained in:
Nicolas Lœuillet 2013-10-03 18:33:20 +02:00
parent 47baa1077e
commit 27a74816da
2 changed files with 1 additions and 9 deletions

View file

@ -1,8 +0,0 @@
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^dl/export_poche.json$ ?export [L]
# Force download
RewriteCond %{QUERY_STRING} =export
RewriteRule ([^/]*)$ - [L,E=dl:$1]
Header onsuccess set Content-disposition "attachment; filename=%{dl}e" env=dl

View file

@ -76,5 +76,5 @@
</ul>
<h2>{% trans "Export your poche datas" %}</h2>
<p><a href="./dl/export_poche.json">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p>
<p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p>
{% endblock %}