diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
index 0a49630..cca829c 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar.html
@@ -32,10 +32,17 @@
{{- if eq .Params.type "search" -}}
{{- partial "search.html" (dict "params" .Params) -}}
{{- else -}}
- {{- $external := strings.HasPrefix .URL "http" -}}
+ {{- $link := .URL -}}
+ {{- $external := strings.HasPrefix $link "http" -}}
+ {{- with .PageRef -}}
+ {{- if hasPrefix . "/" -}}
+ {{- $link = relLangURL (strings.TrimPrefix "/" .) -}}
+ {{- end -}}
+ {{- end -}}
+
{{/* Display icon menu item */}}
{{- if .Params.icon -}}
-
+
{{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}}
{{ or (T .Identifier) .Name | safeHTML }}
@@ -44,7 +51,7 @@
{{- $activeClass := cond $active "font-medium" "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200" -}}
diff --git a/layouts/shortcodes/hextra/feature-card.html b/layouts/shortcodes/hextra/feature-card.html
index d96a776..0f2aedf 100644
--- a/layouts/shortcodes/hextra/feature-card.html
+++ b/layouts/shortcodes/hextra/feature-card.html
@@ -10,6 +10,10 @@
{{- $external := hasPrefix $link "http" -}}
{{- $href := cond (strings.HasPrefix $link "/") ($link | relURL) $link -}}
+{{- if hasPrefix $image "/" -}}
+ {{- $image = relURL (strings.TrimPrefix "/" $image) -}}
+{{- end -}}
+