aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.htaccess8
-rw-r--r--themes/default/config.twig2
2 files changed, 1 insertions, 9 deletions
diff --git a/.htaccess b/.htaccess
deleted file mode 100644
index 37b7701c..00000000
--- a/.htaccess
+++ /dev/null
@@ -1,8 +0,0 @@
1Options +FollowSymlinks
2RewriteEngine On
3RewriteRule ^dl/export_poche.json$ ?export [L]
4
5# Force download
6RewriteCond %{QUERY_STRING} =export
7RewriteRule ([^/]*)$ - [L,E=dl:$1]
8Header onsuccess set Content-disposition "attachment; filename=%{dl}e" env=dl \ No newline at end of file
diff --git a/themes/default/config.twig b/themes/default/config.twig
index e849d03b..0f1aea80 100644
--- a/themes/default/config.twig
+++ b/themes/default/config.twig
@@ -76,5 +76,5 @@
76 </ul> 76 </ul>
77 77
78 <h2>{% trans "Export your poche datas" %}</h2> 78 <h2>{% trans "Export your poche datas" %}</h2>
79 <p><a href="./dl/export_poche.json">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p> 79 <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p>
80{% endblock %} \ No newline at end of file 80{% endblock %} \ No newline at end of file