8000 Add option to use case-insensitive Redirects · Issue #13085 · wagtail/wagtail · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add option to use case-insensitive Redirects #13085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
reinaldons opened this issue May 2, 2025 · 3 comments
Open

Add option to use case-insensitive Redirects #13085

reinaldons opened this issue May 2, 2025 · 3 comments

Comments

@reinaldons
Copy link

Is your proposal related to a problem?

Last month, we migrated our government website to Wagtail, and it has 184,269 Pages as all departments publish their content to the same website. Usually, departments and the central government use redirects to publicise and advertise campaigns, services and other information. One example is /ActionPlanOnBullying or /ActuarialReviewoftheSocialInsuranceFund, where they use capitalisation for better understanding, to be more intuitive and make it easier for citizens to memorise.

For each of those redirects, the content managers need to create multiple redirects to guess possible ways it will be advertised or used by other media and users.

Describe the solution you'd like

Wagtail have an option to change the Redirect model and middleware to handle redirects in a case-insensitive manner, for example, REDIRECTS_CASE_INSENSITIVE = True.

Describe alternatives you've considered

The redirect middleware is easy to extend or replace, but for the model, the only option is to replace it entirely or maybe monkeypatch it.

Additional context

I would prefer to first check if Wagtail can have a customisation for it before adding any custom code on top of it, as we are using and plan to use Wagtail for all government websites we manage.

Working on this

N/A

Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.

@andylolz

This comment has been minimized.

@reinaldons
Copy link
Author

Hi @andylolz!

Before opening this issue, I went through the issues and saw the one you mentioned. My proposal is related to the Wagtail Redirects feature specifically. We have no desire to change the page routes.

@andylolz
Copy link
andylolz commented May 2, 2025

Oh I see! Apologies – I misunderstood. Yes, that makes sense. In that case, I’ve hidden my reply as off-topic.

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

No branches or pull requests

2 participants
0