wagtail/docs/reference/contrib
Andy Chosak a81cabce05 Expose URL resolver match for RoutablePageMixin (#11953)
Django provides an `HttpRequest.resolver_match` attribute [0] that
allows downstream code to inspect a request object to see how its URL
was resolved to a view.

Wagtail's RoutablePageMixin does its own sub-URL routing to call
different view functions on a page object, but the resolver result isn't
similarly made available.

This commit sets a new `routable_resolver_match` attribute on the
request object, akin to Django's `resolver_match`, that stores this
sub-URL routing information for downstream use.

Documentation has been updated appropriately (along with a couple of
other minor broken things in the RoutablePageMixin docs).

[0] https://docs.djangoproject.com/en/5.0/ref/request-response/#django.http.HttpRequest.resolver_match
2024-07-03 14:17:12 +01:00
..
forms Rename SubmissionsListView.ordering to default_ordering for consistency with BaseListingView 2024-04-05 17:36:41 +01:00
frontendcache.md Allow manually specifying credentials for CloudFront frontend cache backend (#10565) 2024-07-01 19:02:12 +01:00
index.md
legacy_richtext.md
redirects.md Documentation: Update some Sphinx-style code ref roles to MyST style (#12030) 2024-06-12 11:47:06 +02:00
routablepage.md Expose URL resolver match for RoutablePageMixin (#11953) 2024-07-03 14:17:12 +01:00
searchpromotions.md
settings.md Docs - Page names & reference section - Update British spelling to American 2024-02-12 08:44:19 +10:00
simple_translation.md Docs - Page names & reference section - Update British spelling to American 2024-02-12 08:44:19 +10:00
sitemaps.md Docs - Page names & reference section - Update British spelling to American 2024-02-12 08:44:19 +10:00
table_block.md Docs - Page names & reference section - Update British spelling to American 2024-02-12 08:44:19 +10:00
typed_table_block.md Docs - Page names & reference section - Update British spelling to American 2024-02-12 08:44:19 +10:00