Commit 8de1239c authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Do not support redirection to a complete URL

parent 3d8f2a5a
......@@ -62,6 +62,7 @@ result_dict = {
if (form_id is not None) and \
(form_id not in ['view', 'Base_viewFakePythonScriptActionForm']) and \
(form_id != previous_form_id) and \
(not form_id.startswith('http')) and \
(context.isWebMode()):
# Calculate the new view URL
result_dict['_links']['location'] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment