diff --git a/docs/advanced_topics/amp.rst b/docs/advanced_topics/amp.rst index 082bad30ca..8701d5c3a1 100644 --- a/docs/advanced_topics/amp.rst +++ b/docs/advanced_topics/amp.rst @@ -163,7 +163,7 @@ file for the ``/amp`` prefix: # Change this line to point at your amp_urls instead of Wagtail's urls path('amp/', include(wagtail_amp_urls)), - path('', include(wagtail_urls)), + re_path(r'', include(wagtail_urls)), ] After this, there shouldn't be any noticeable difference to the AMP version of diff --git a/docs/advanced_topics/images/image_serve_view.rst b/docs/advanced_topics/images/image_serve_view.rst index 9c0c7e7124..f1971b32d3 100644 --- a/docs/advanced_topics/images/image_serve_view.rst +++ b/docs/advanced_topics/images/image_serve_view.rst @@ -33,7 +33,7 @@ Add an entry for the view into your URLs configuration: ... # Ensure that the wagtailimages_serve line appears above the default Wagtail page serving route - path('', include(wagtail_urls)), + re_path(r'', include(wagtail_urls)), ] Usage diff --git a/docs/reference/contrib/sitemaps.rst b/docs/reference/contrib/sitemaps.rst index c031b808ae..2b4131634c 100644 --- a/docs/reference/contrib/sitemaps.rst +++ b/docs/reference/contrib/sitemaps.rst @@ -52,7 +52,7 @@ sitemap: ... # Ensure that the 'sitemap' line appears above the default Wagtail page serving route - path('', include(wagtail_urls)), + re_path(r'', include(wagtail_urls)), ]