Skip to content

Page alias refers to wrong language #2433

@chalin

Description

@chalin

From #2432 (comment):

Generated site diff since the upgrade to 0.154.5:

$ (cd public && git diff -bw --ignore-blank-lines -I 'Hugo 0.154')                                      
diff --git a/_print/docs/getting-started/index.html b/_print/docs/getting-started/index.html
index b4924d1..6ed8845 100644
--- a/_print/docs/getting-started/index.html
+++ b/_print/docs/getting-started/index.html
@@ -2,7 +2,7 @@
 <html lang="xx">
   <head>
     <title>http://localhost/xx/_print/docs/get-started/</title>
-    <link rel="canonical" href="http://localhost/xx/_print/docs/get-started/">
+    <link rel="canonical" href="http://localhost/xx/docs/get-started/">
     <meta charset="utf-8">
     <meta http-equiv="refresh" content="0; url=http://localhost/xx/_print/docs/get-started/">
   </head>

While the above shows that the canonical link is now more correct under the new version of Hugo (by referring to the original page not the print version), the reference to the xx language is wrong.

Tasks

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions