diff --git a/app/middleware/internal_redirect.py b/app/middleware/internal_redirect.py index 7d70c064..c1c2a0d2 100644 --- a/app/middleware/internal_redirect.py +++ b/app/middleware/internal_redirect.py @@ -45,7 +45,7 @@ def process_response(self, request, response): # We don't use get_full_path_with_slash here as we only care about the path # without the query parametres. - new_path = '{request.path_info}/' + new_path = f'{request.path_info}/' self.logger.info('Internal redirect %s -> %s', request.path_info, new_path) request.path_info = new_path return get_wsgi_application().get_response(request)