From 73a3001a35286f582fb9d5f7873ad93856ca8ec8 Mon Sep 17 00:00:00 2001 From: Jochen Saalfeld Date: Wed, 9 Jan 2019 16:57:37 +0100 Subject: [PATCH] fixing the wsgi server by removing trailing slashes on static files fixes #4091 --- openslides/urls.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openslides/urls.py b/openslides/urls.py index b5f45b5fe..f7755a56d 100644 --- a/openslides/urls.py +++ b/openslides/urls.py @@ -1,6 +1,5 @@ from django.conf import settings from django.conf.urls import include, url -from django.views.generic import RedirectView from openslides.mediafiles.views import protected_serve from openslides.utils.rest_api import router @@ -15,9 +14,6 @@ urlpatterns = [ protected_serve, {"document_root": settings.MEDIA_ROOT}, ), - # When a url without a leading slash is requested, redirect to the url with - # the slash. This line has to be after static and media files. - url(r"^(?P.*[^/])$", RedirectView.as_view(url="/%(url)s/", permanent=True)), # URLs for the rest system url(r"^rest/", include(router.urls)), # Other urls defined by modules and plugins