I'm working on a bilingual site (en
and cy
) and have a news channel with entry urls news/{slug}
and the translated cy/newyddion/{slug}
. Everything is working well with entries and if the url is accessed without the slug then a list of entries is displayed.
However, when accessing without the slug the translation of news
is cy/news
not cy/newyddion
as required. If I attempt to access cy/newyddion
I get a 404 not found error. I have tried different solutions such as adding files in templates/cy/newyddion
but still get 404s.
The only way I've got it to work is by adding a new single section named news
which has no content and loads the news index template and renaming the news section handle to avoid conflicts.
What I would like to know is if there is a better way of accomplishing this as it seems like a cumbersome way of doing it.