kopia lustrzana https://github.com/wagtail/wagtail
a81cabce05
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 |
||
---|---|---|
.. | ||
forms | ||
frontendcache.md | ||
index.md | ||
legacy_richtext.md | ||
redirects.md | ||
routablepage.md | ||
searchpromotions.md | ||
settings.md | ||
simple_translation.md | ||
sitemaps.md | ||
table_block.md | ||
typed_table_block.md |