Switch screenshot language gives 404 error
See original GitHub issueWhere to find the issue
First noticed with https://www.coronawarn.app/en/screenshots-archive/2-2.html https://www.coronawarn.app/de/screenshots-archive/2-2.html
Reviewed as not yet fixed for screenshot versions (2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9 and 2.10).
Describe the issue
This is a duplicate of the comment in the merged https://github.com/corona-warn-app/cwa-website/pull/1399#issuecomment-863846009 to ensure that the issue is listed in an open item.
Switching languages when viewing screenshots which are not from the latest version does not work on the production server https://www.coronawarn.app although it does work on a local clone http://localhost:8000/ run through npm start
.
Repro steps
- Open https://www.coronawarn.app/en/screenshots/
- In the Versions drop-down select a version which is not the latest, e.g. 2.8
- Click DE in header
- Browser tries to open https://www.coronawarn.app/de/screenshots-archive/2-8 (for instance) and shows 404 error
The same problem occurs when trying to switch from German to English.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
404 Error after switching language | WordPress.org
Hello there! I'm facing a really frustrating issue with the plugin. As soon as I or anyone on the site clicks the flag...
Read more >Error 404 not found - What does it mean & how to fix it! - IONOS
Open the .htaccess file (or create one if needed) in the root directory, enter this in 'ErrorDocument 404 /404.html' and save the change....
Read more >Translated pages won't load or give 404 error - WPML
Tell us what you are trying to do? I've translated pages, and I just want to see them in a browser. Is there...
Read more >How to Fix 404 Page or Page Not Found Error Messages
If you are getting a 404 page when you try to navigate to a certain page, or get a 'Page Not Found' error,...
Read more >I see a page not found (404 error) when changing language ...
To fix it, follow these instructions: · 1. Go to your WordPress admin, in Settings > Permalinks · 2. Select anything but NOT...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I set up a local nginx server and I can reproduce the issue. The web server is looking for an
index.html
and not finding it.A possible solution may be to:
Unfortunately I can’t make these changes myself, because the files I refer to are generated and it would need somebody with javascript skills to sort this out. It’s not such a simple task.
The issue regarding accessing 2.3 screenshots has been resolved with PR https://github.com/corona-warn-app/cwa-website/pull/1440.
The problem when switching languages remains however.