Skip to content

Commit d6c2411

Browse files
committed
fix logic
1 parent bc42b46 commit d6c2411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/redturtle/volto/browser/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class RTExceptionView(ExceptionView):
55

66
def __call__(self):
77
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)
8+
if any(x in self.request.ACTUAL_URL for x in matches):
9+
self.request.response.redirect(self.request.URL, status=302, lock=1)
10+
return
1111

1212
return super().__call__()

0 commit comments

Comments
 (0)