We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc42b46 commit d6c2411Copy full SHA for d6c2411
src/redturtle/volto/browser/exceptions.py
@@ -5,8 +5,8 @@ class RTExceptionView(ExceptionView):
5
6
def __call__(self):
7
matches = ["@@download", "@@images", "@@display-file"]
8
-
9
- if any(x in self.request.environ.get("REQUEST_URI") for x in matches):
10
- return self.request.response.redirect(self.request.URL)
+ if any(x in self.request.ACTUAL_URL for x in matches):
+ self.request.response.redirect(self.request.URL, status=302, lock=1)
+ return
11
12
return super().__call__()
0 commit comments