web.dev
web.dev copied to clipboard
If an article with a locale does not exist, it should redirect to the default language version
Assume there were a locale foo. A request to the non-existent URL /foo/bar/ will currently result in a 404 error. As an alternative, there could be a redirect (attempt) to /bar/, that is, the default language version of the article. This may or may not exist, but it's an educated guess.
This caught us in practice with a link issue where they point at /pl/clipchamp (404 error), but where /clipchamp exists.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. To prevent this from happening, leave a comment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To prevent this from happening, leave a comment.
The incorrect link on the site still exists, and we still don't have an answer. One way to deal with this would be to add a one-off redirect (https://web.dev/pl/clipchamp/ → https://web.dev/clipchamp/). It might bite us once we actually add a Polish translation and we forget that the redirect exists.