web.dev icon indicating copy to clipboard operation
web.dev copied to clipboard

If an article with a locale does not exist, it should redirect to the default language version

Open tomayac opened this issue 4 years ago • 3 comments

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.

tomayac avatar Nov 03 '21 10:11 tomayac

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.

stale[bot] avatar Jun 12 '22 12:06 stale[bot]

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.

stale[bot] avatar Sep 21 '22 01:09 stale[bot]

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.

tomayac avatar Sep 21 '22 09:09 tomayac