Skip to content
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

Wagtail - decorator #6220

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

smithellis
Copy link
Contributor

  • A decorator for views that need to prefer serving pages from the CMS instead of the standard site
  • The decorator tests if a page exists in WT, and if it isn't a 404, it serves it - otherwise it tries the normal URL matching
  • There is a helper to strip the locale so that we can deal with sane paths
- A decorator for views that need to prefer serving pages
from the CMS instead of the standard site
- The decorator tests if a page exists in WT, and if it isn't
a 404, it serves it - otherwise it tries the normal URL matching
- There is a helper to strip the locale so that we can deal
with sane paths
@akatsoulas akatsoulas merged commit 0ed4c62 into mozilla:main Sep 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants