diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index fe652ba..d6baee3 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -23,7 +23,7 @@
{{ range .Site.Menus.main }}
{{ $active := false }}
- {{ if eq ($.Site.GetPage .URL).RelPermalink $.RelPermalink }}
+ {{ if eq (.URL | relLangURL) $.RelPermalink }}
{{ $active = true }}
{{ end }}
-