question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch screenshot language gives 404 error

See original GitHub issue

Where 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

  1. Open https://www.coronawarn.app/en/screenshots/
  2. In the Versions drop-down select a version which is not the latest, e.g. 2.8
  3. Click DE in header
  4. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
MikeMcC399commented, Jun 29, 2021

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:

  • create new directories screenshots-archive/2-2, screenshots-archive/2-3 etc for both languages
  • move the 2-2.html, 2-3.html, etc. files to the new folders and rename each of them to index.html
  • adjust the stylesheet references due to the move of the files one layer lower
  • correct the global.json to refer to directories instead of files

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.

1reaction
MikeMcC399commented, Jun 29, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found