Skip to content

Commit

Permalink
[3.0.x] Fixed #31330 -- Corrected catchall URL pattern in flatpages d…
Browse files Browse the repository at this point in the history
…ocs.

Use re_path() pattern with the regex used before original regression in
df41b5a.
Regression in a0916d7.

Backport of 8f2a6c7 from master
  • Loading branch information
carltongibson committed Mar 26, 2020
1 parent 2306f8c commit 3bb1e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/contrib/flatpages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ to place the pattern at the end of the other urlpatterns::

# Your other patterns here
urlpatterns += [
path('<path:url>/', views.flatpage),
re_path(r'^(?P<url>.*/)$', views.flatpage),
]

.. warning::
Expand Down

0 comments on commit 3bb1e6c

Please sign in to comment.