diff --git a/prosopopee/themes/exposure/templates/menu.html b/prosopopee/themes/exposure/templates/menu.html
index 4e35dad..9b37839 100644
--- a/prosopopee/themes/exposure/templates/menu.html
+++ b/prosopopee/themes/exposure/templates/menu.html
@@ -4,7 +4,8 @@
{% for line in settings.menu %}
{% set rowloop = loop %}
{% for file_name, menu_name in line.items() %}
- {% if file_name.startswith('http') %}
+ {# We test if it's a URI reference or not #}
+ {% if ':' in file_name and not file_name.startswith('./') %}
{% set file_name = file_name %}
{% else %}
{% set file_name = "../"+file_name %}
diff --git a/prosopopee/themes/light/templates/menu.html b/prosopopee/themes/light/templates/menu.html
index cc898e0..f40efd6 100644
--- a/prosopopee/themes/light/templates/menu.html
+++ b/prosopopee/themes/light/templates/menu.html
@@ -3,7 +3,8 @@
{% for line in settings.menu %}
{% set file_name, menu_name = line.items()[0] %}
- {% if file_name.startswith('http') %}
+ {# We test if it's a URI reference or not #}
+ {% if ':' in file_name and not file_name.startswith('./') %}
{% set file_name = file_name %}
{% elif gallery %}
{% set file_name = "../"+file_name %}
diff --git a/prosopopee/themes/material/templates/menu.html b/prosopopee/themes/material/templates/menu.html
index e37da1a..f195b0c 100644
--- a/prosopopee/themes/material/templates/menu.html
+++ b/prosopopee/themes/material/templates/menu.html
@@ -2,7 +2,8 @@
{% for line in settings.menu %}
{% set rowloop = loop %}
{% for file_name, menu_name in line.items() %}
- {% if file_name.startswith('http') %}
+ {# We test if it's a URI reference or not #}
+ {% if ':' in file_name and not file_name.startswith('./') %}
{% set file_name = file_name %}
{% else %}
{% set file_name = "../"+file_name %}
@@ -16,7 +17,8 @@
{% for line in settings.menu %}
{% set rowloop = loop %}
{% for file_name, menu_name in line.items() %}
- {% if file_name.startswith('http') %}
+ {# We test if it's a URI reference or not #}
+ {% if ':' in file_name and not file_name.startswith('./') %}
{% set file_name = file_name %}
{% else %}
{% set file_name = "../"+file_name %}