I have a Hugo site with a few translated pages. Not all the pages are translated, since I don't always have volunteers for every page in every language.
In the menu, I have links to some pages that I'd like to redirect to English if the local translation is not there (so there's always a link, but it might not be translated).
# Force to have /en/my-page and /fr/my-page routes, even for default language.
defaultContentLanguageInSubdir= true
# English is the default language
defaultContentLanguage = "en"
# This page exists in en and fr, but not de
[[menu.shortcuts]]
name = "Licence"
url = "/licence"
[Languages]
[Languages.en]
languageName = "English"
[Languages.fr]
languageName = "Français"
[Languages.de]
languageName = "Deutsch"
On the English and French page, this works fine, the menu link goes to /en/licence
and /fr/licence
. But on the German page, it goes to /de/licence
, which is a 404.
Is there a way to redirect missing pages to the corresponding page in the default language?