open-zaak / open-zaak-website

A site for the Open Zaak codebase which implements the VNG Realisatie standard APIs for case oriented work
https://openzaak.org
European Union Public License 1.2
1 stars 4 forks source link

404 when switching from News section in English to Dutch and viceversa #68

Open AlbaRoza opened 3 years ago

AlbaRoza commented 3 years ago

Once the user is in the English "news" section and switches to "NL", he/she encounters a 404. Same happens if the change goes from Dutch to English within the news/nieuws section.

Ainali commented 3 years ago

I guess that happens because all the news so far have different file names in Dutch and in English. This could be solved by renaming the files to the same pattern as elsewhere on the site. Example: instead of naming the Dutch version of 2021-02-11-welcome.en.md as 2021-02-11-welkom.md, the latter should be named 2021-02-11-welcome.md. so that the only thing differing between the two is .en.

AlbaRoza commented 3 years ago

I guess that happens because all the news so far have different file names in Dutch and in English. This could be solved by renaming the files to the same pattern as elsewhere on the site. Example: instead of naming the Dutch version of 2021-02-11-welcome.en.md as 2021-02-11-welkom.md, the latter should be named 2021-02-11-welcome.md. so that the only thing differing between the two is .en.

And what about redirecting it to the general News section? So if you are in 2021-02-11-welkom.md and want to check the English version of it, you'd just have to click on "EN" and it'd take you to https://openzaak.org/en/news/ (and the other way round from an English one).

Ainali commented 3 years ago

And what about redirecting it to the general News section? So if you are in 2021-02-11-welkom.md and want to check the English version of it, you'd just have to click on "EN" and it'd take you to https://openzaak.org/en/news/ (and the other way round from an English one).

I think that would be surprising to the reader, especially when there is a translation of each news piece.

Also, I think this need new development work, whereas renaming the files should work immediately with the existing functionality.