Skip to content

Unsupported language codes redirect to 404 #575

Open

Description

Description

Originally reported by @AetherUnbound

Example: https://openverse.org/cn

Additional context

We should redirect to English with a banner saying we don't have translations for the requested language code.

This should be handled in a middleware that sets a cookie for rendering the banner after redirecting to the English version of the page. Redirect any two-letter paths that do not match the available locales. To find the available locales, check the i18n.availableLocales string array (retrieve i18n using the useI18n composable).

Resolution

  • 🙋 I would be interested in resolving this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions