aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorHelder Pereira <[email protected]>2020-06-14 10:14:56 +0100
committerBjørn Erik Pedersen <[email protected]>2020-06-14 14:08:41 +0200
commit145b3fcce35fbac25c7033c91c1b7ae6d1179da8 (patch)
treecdcf5e36e05c5fe3ba36039a830eff9bf10e60df /hugolib/site_render.go
parent01e249e97ce9a3bc145f4372a032b9da3e123a62 (diff)
downloadhugo-145b3fcce35fbac25c7033c91c1b7ae6d1179da8.tar.gz
hugo-145b3fcce35fbac25c7033c91c1b7ae6d1179da8.zip
Fix aliases with relativeURLs
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index 1debcbef6..5377babef 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -383,7 +383,7 @@ func (s *Site) renderMainLanguageRedirect() error {
if found {
mainLang := s.h.multilingual.DefaultLang
if s.Info.defaultContentLanguageInSubdir {
- mainLangURL := s.PathSpec.AbsURL(mainLang.Lang, false)
+ mainLangURL := s.PathSpec.AbsURL(mainLang.Lang+"/", false)
s.Log.DEBUG.Printf("Write redirect to main language %s: %s", mainLang, mainLangURL)
if err := s.publishDestAlias(true, "/", mainLangURL, html, nil); err != nil {
return err