Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Add custom middleware and URL resolvers for ISO 3166 language prefixes. #187

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

solarissmoke
Copy link
Contributor

Fixes #167.

This is probably going to need some thorough testing once we have some translations in place.

@patjouk patjouk temporarily deployed to donate-wagtail-staging-pr-187 August 15, 2019 12:29 Inactive
@patjouk patjouk temporarily deployed to donate-wagtail-staging-pr-187 August 15, 2019 12:29 Inactive
@patjouk patjouk temporarily deployed to donate-wagtail-staging-pr-187 August 15, 2019 12:32 Inactive
Copy link
Collaborator

@ababic ababic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've already covered all of my concerns in related issue (a third-party app would be ideal), and this implementation looks solid, so 👍

@TheoChevalier
Copy link
Collaborator

Note that it seems to break the language negotiation (https://donate-wagtail-staging-pr-187.herokuapp.com/ gives me a 404 instead of redirecting to https://donate-wagtail-staging-pr-187.herokuapp.com/fr)

@solarissmoke
Copy link
Contributor Author

Thanks @TheoChevalier - looks like I need to do a bit more work to get the language negotiation working - will sort this tomorrow.

@solarissmoke solarissmoke force-pushed the feature/url-case branch 4 times, most recently from db9ac2c to 3c8eeca Compare August 21, 2019 08:37
@patjouk patjouk temporarily deployed to donate-wagtail-staging-pr-187 August 21, 2019 08:44 Inactive
@solarissmoke
Copy link
Contributor Author

@TheoChevalier would you be able to test this deployment again? It should now address your comment above about 404 with your language preference.

@TheoChevalier
Copy link
Collaborator

Looks good with the latest, thanks @solarissmoke

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Country code in URLs should be in uppercase
4 participants