equal
deleted
inserted
replaced
125 request: the Django HTTP request object; redirect path is derived from |
125 request: the Django HTTP request object; redirect path is derived from |
126 request.path |
126 request.path |
127 old_suffix, new_suffix, params: see helper.requests.replaceSuffix() |
127 old_suffix, new_suffix, params: see helper.requests.replaceSuffix() |
128 |
128 |
129 Returns: |
129 Returns: |
130 a Django HTTP redirect response pointing to the altered path |
130 a Django HTTP redirect response pointing to the altered path. |
131 """ |
131 """ |
132 path = helper.requests.replaceSuffix(request.path, old_suffix, new_suffix, |
132 path = helper.requests.replaceSuffix(request.path, old_suffix, new_suffix, |
133 params=params) |
133 params=params) |
134 return http.HttpResponseRedirect(path) |
134 return http.HttpResponseRedirect(path) |