diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 69fca56271..d94eae54c1 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -154,7 +154,7 @@
{{- $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}
{{- $pageHash := md5 .Page }}
{{- $isOpen := or $currentAlwaysopen $isSelf $isAncestor }}
- {{ if .Site.Params.collapsibleMenu }}{{ end }}
+ {{ if .Site.Params.collapsibleMenu }}{{ end }}
{{- partial "menu-pre.html" . }}{{ or .Params.menuTitle .LinkTitle .Title }}{{ partial "menu-post.html" . }}
{{- if $showvisitedlinks }}{{ end }}
{{- else }}
-
+
{{- partial "menu-pre.html" . }}{{ or .Params.menuTitle .LinkTitle .Title }}{{ partial "menu-post.html" . }}
{{- if $showvisitedlinks }}{{ end }}
{{- end }}
diff --git a/layouts/partials/nested-content.hugo b/layouts/partials/nested-content.hugo
index 824e52386b..f4fd5c7b03 100644
--- a/layouts/partials/nested-content.hugo
+++ b/layouts/partials/nested-content.hugo
@@ -1,7 +1,7 @@
{{- $page := .page }}
{{- $outputFormat := .outputFormat }}
{{- $c:=""}}{{/* if we have a relative link in a print page, our print URL is one level to deep; so we are making it absolute to our page by prepending the page's permalink */}}
-{{- $link_prefix := strings.TrimRight "/" $page.RelPermalink }}
+{{- $link_prefix := strings.TrimRight "/" (partial "relLangPrettyUglyURL.hugo" (dict "to" $page)) }}
{{- $content := partial "output-partial.hugo" (dict "base" "content" "page" $page "parameter" $page "outputFormat" $outputFormat) }}
{{- $content = replaceRE "((?:src|href)\\s*=(?:\\s*[\"']\\s*)?)(\\.[^\"'\\s>]*|[\\w]+[^\"'\\s>:]*)([\"'\\s>])" (printf "${1}%s/${2}${3}" $link_prefix) $content }}
{{- partial "output-partial.hugo" (dict "base" "article" "page" $page "parameter" (dict "page" $page "content" $content "outputFormat" $outputFormat) "outputFormat" $outputFormat) }}
\ No newline at end of file
diff --git a/layouts/partials/relLangPrettyUglyURL.hugo b/layouts/partials/relLangPrettyUglyURL.hugo
index 37edd55cfb..cd5a8cb0cf 100644
--- a/layouts/partials/relLangPrettyUglyURL.hugo
+++ b/layouts/partials/relLangPrettyUglyURL.hugo
@@ -1,5 +1,9 @@
{{- $to := .to }}
+{{- $abs := .abs }}
{{- $link := $to.RelPermalink }}
+{{- if $abs }}
+ {{- $link = $to.Permalink }}
+{{- end }}
{{- if and (ne .Site.Params.disableExplicitIndexURLs true) (eq (substr $link -1) "/") }}
{{- $link = printf "%sindex.html" $link }}
{{- end }}
-
{{- $defaultAlwaysopen := .Site.Params.alwaysopen | default true }}
@@ -168,7 +168,7 @@
{{- end }}
{{- end }}