2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 03:27:26 +00:00

tidy trailing slash everywhere & fix tests

This commit is contained in:
2025-02-19 16:00:53 +02:00
parent cc06e2e1f4
commit a950cc60d9
14 changed files with 141 additions and 49 deletions

View File

@@ -36,6 +36,12 @@ class TroggleAppendSlashMiddleware(MiddlewareMixin):
do NOT include
troggle.core.middleware.TroggleAppendSlashMiddleware
in settings.py
FURTHER WARNING
If playing about with this, the 301 redirects that it creates will be cached INDEFINITELY by any browser you
used to test it, e.g. /css/main.css with be permanetly redirected to /css/main2.css/ with dreadful
consequences, similarly for any images visited. You have to go into your browser settings and delete all cached
files to recover from this.
"""
def process_request(self, request):