Skip to content

defaultContentLanguageInSubdir=true only works on the homepage #1375

Answered by h-enk
zalexzperez asked this question in Support
Discussion options

You must be logged in to vote

The hero section is different than what one would expect. What is wrong? Edit: seems to be because _index.md needs to be moved from /content/ to /content/en/

Correct!

Not sure if this is the optimal approach, though.

You're right, that's not how it's supposed to work. Doks needs to be updated, replacing {{ .URL | absURL }} with {{ .URL | absLangURL }} (this does not work in a production build) {{ .URL | relLangURL }} (this does work in both development and a production build)

For now, use (temporary) overwrites:

  • Copy node_modules/@thulite/doks-core/layouts/_partials/header/header.html to /layouts/_partials/header/header.html and do a find and eplace .
  • Copy node_modules/@thulite/doks-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zalexzperez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants