diff --git a/material/base.html b/material/base.html
index d08336df25d..3a14969387e 100644
--- a/material/base.html
+++ b/material/base.html
@@ -147,8 +147,8 @@
{% if config.extra.self_hosted %}
This documentation applies to Codacy Self-hosted
- {% if config.extra.version %}
- v{{ config.extra.version }}
+ {% if config.extra.codacy_self_hosted_version %}
+ v{{ config.extra.codacy_self_hosted_version }}
{% endif %}
diff --git a/src/base.html b/src/base.html
index 6b6fca07bab..a72802911b6 100644
--- a/src/base.html
+++ b/src/base.html
@@ -311,8 +311,8 @@
{% if config.extra.self_hosted %}
This documentation applies to Codacy Self-hosted
- {% if config.extra.version %}
- v{{ config.extra.version }}
+ {% if config.extra.codacy_self_hosted_version %}
+ v{{ config.extra.codacy_self_hosted_version }}
{% endif %}