Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlbaRoza opened this issue Apr 26, 2021 · 3 comments
Open
Labels
bug Something isn't working

Comments

@AlbaRoza
Copy link
Contributor

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.

@AlbaRoza AlbaRoza added the bug Something isn't working label Apr 26, 2021
@Ainali
Copy link
Collaborator

Ainali commented Apr 28, 2021

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
Copy link
Contributor Author

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
Copy link
Collaborator

Ainali commented Apr 28, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants