diff --git a/material/partials/header.html b/material/partials/header.html
index dc1bd0e38..07707ab14 100644
--- a/material/partials/header.html
+++ b/material/partials/header.html
@@ -3,7 +3,7 @@
-#}
{% set site_url = config.site_url | default(nav.homepage.url, true) | url %}
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
- {% set site_url = site_url ~ "/index.html" | url %}
+ {% set site_url = site_url ~ "/index.html" %}
{% endif %}