Skip to content

Commit

Permalink
Add lang query to custom hreflangs
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Jun 26, 2023
1 parent e93d1e8 commit 140d7a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/base/layout.scala
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ object layout {
hrefLang(langCode, s"$path?lang=$langCode")
}).mkString
case lila.i18n.LangList.Custom(langPathMap) =>
(langPathMap.map { case (langCode, pathWithQuery) =>
if (langCode == "en") defaultWithEnHrefLang(pathWithQuery)
else hrefLang(langCode, pathWithQuery)
(langPathMap.map { case (langCode, path) =>
if (langCode == "en") defaultWithEnHrefLang(path)
else hrefLang(langCode, s"$path?lang=$langCode")
}).mkString
}
}
Expand Down

0 comments on commit 140d7a7

Please sign in to comment.