Subpages not loading in multilingual site

So I went for a different approach for my multilingual site as my client specified on having each language files in content under Lagrange specific folders (e.g. en, fr, de in content).

This is to avoid what mfima went through here: Content organization not working in multilingual site.

Current setup:

/Content

/en/index.md
/en/contact.md

/fr/index.md
/fr/contact.md

/fr/index.md
/fr/contact.md

/Layouts

/_default/baseof.html

/en/single.html

/fr/single.html

/fr/single.html

In the MD front matter I specify url = "/en/index.html" per file. The index loads just fine in example.com/en per language.

Now my problem is with the contact.md. It does not load in example.com/en/contact. I get a 404.

I’ve specified the url in the contact.md front matter as well but no dice. Help?

Do you have a single.html for pages that are not in a language directory? Also, which errors are showing up, it will probably mention that file since it can’t render it.

When I run the Hugo server no errors are shown. Everything seems to render just fine.

And no, don’t have a single outside the language directory. Don’t have any pages outside the lagrange directory. Should I have one?

You have a very untraditional setup, and it is hard to see what without a complete picture (i.e. full site source).

But, your setup is not related to how multilingual works in Hugo.

I agree with Bjørn, you ought to put the site source online and link to it, then we can figure it out real quick.