diff --git a/changes/changelog.d/520.bugfix b/changes/changelog.d/520.bugfix
new file mode 100644
index 0000000000000000000000000000000000000000..3cd146d29f9b83166090e2970bfe7f81bc59cc14
--- /dev/null
+++ b/changes/changelog.d/520.bugfix
@@ -0,0 +1 @@
+Fixed wrong env file URL and display bugs in deployment documentation (#520)
diff --git a/docs/installation/debian.rst b/docs/installation/debian.rst
index 407f71dd7128814df12fbafbfc2c172912ebe618..08678b581cab5b7f3244f3787b89fa009b385da3 100644
--- a/docs/installation/debian.rst
+++ b/docs/installation/debian.rst
@@ -207,7 +207,7 @@ Download the sample environment file:
 
 .. parsed-literal::
 
-    curl -L -o config/.env "https://code.eliotberriot.com/funkwhale/funkwhale/raw/|version|/deploy/env.prod.sample"
+    curl -L -o config/.env "https://code.eliotberriot.com/funkwhale/funkwhale/raw/develop/deploy/env.prod.sample"
 
 .. note::
 
diff --git a/docs/installation/docker.rst b/docs/installation/docker.rst
index fc13851cfd39c8660ea4020febab8ecd89ad81ff..31095e572566f7db4f84174e15bdcb5ddb9a957c 100644
--- a/docs/installation/docker.rst
+++ b/docs/installation/docker.rst
@@ -20,7 +20,7 @@ Create your env file:
 .. parsed-literal::
 
     export FUNKWHALE_VERSION="|version|"
-    curl -L -o .env "https://code.eliotberriot.com/funkwhale/funkwhale/raw/|version|/deploy/env.prod.sample"
+    curl -L -o .env "https://code.eliotberriot.com/funkwhale/funkwhale/raw/develop/deploy/env.prod.sample"
     sed -i "s/FUNKWHALE_VERSION=latest/FUNKWHALE_VERSION=$FUNKWHALE_VERSION/" .env
 
 Ensure to edit it to match your needs (this file is heavily commented)
diff --git a/docs/installation/index.rst b/docs/installation/index.rst
index d714ff511fe7a75c0efa61de75a043a7dc5c7098..c9977a7d4d7dfd6e5be75a4ee9e9eba98b2dfa47 100644
--- a/docs/installation/index.rst
+++ b/docs/installation/index.rst
@@ -120,7 +120,7 @@ match the application configuration and make upgrade/maintenance easier.
 
 On docker deployments, run the following commands:
 
-.. parsed-literal::
+.. code:: shell
 
     # download the needed files
     curl -L -o /etc/nginx/funkwhale_proxy.conf "https://code.eliotberriot.com/funkwhale/funkwhale/raw/develop/deploy/funkwhale_proxy.conf"
@@ -134,7 +134,7 @@ On docker deployments, run the following commands:
 
 On non-docker deployments, run the following commands:
 
-.. parsed-literal::
+.. code:: shell
 
     # download the needed files
     curl -L -o /etc/nginx/funkwhale_proxy.conf "https://code.eliotberriot.com/funkwhale/funkwhale/raw/develop/deploy/funkwhale_proxy.conf"