#31330: Flatpage catchall is killing APPEND_SLASH functionality on normal pages.
-------------------------------------+-------------------------------------
Reporter: meesterguyman | Owner: nobody
Type: Bug | Status: new
Component: contrib.flatpages | Version: 3.0
Severity: Normal | Resolution:
Keywords: append_slash, | Triage Stage:
flatpage, catchall | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by felixxm):
Thanks for this ticket, I think there is a regression introduced in
df41b5a05d4e00e80e73afe629072e37873e767a in `flatpages`
[https://docs.djangoproject.com/en/3.0/ref/contrib/flatpages/#using-the-
urlconf docs], i.e. a "catchall" pattern should contain a trailing slash
when you use `APPEND_SLASH`:
{{{
urlpatterns += [
path('<path:url>/', views.flatpage),
]
}}}
Can you check your app with this change?
--
Ticket URL: <https://code.djangoproject.com/ticket/31330#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/071.d5cd1c1a1e84efff13ecd21ab8153706%40djangoproject.com.