Commit 635ce6df authored by Romain Courteaud's avatar Romain Courteaud

Use Base_redirect to handle virtualhost correctly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22065 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80301cb9
...@@ -88,9 +88,7 @@ if portal_type not in allowed_type_list:\n ...@@ -88,9 +88,7 @@ if portal_type not in allowed_type_list:\n
if batch_mode:\n if batch_mode:\n
return None\n return None\n
else:\n else:\n
return context.ERP5Site_redirect(\'%s/%s/view\' % (\n return context.Base_redirect(keep_items={\'portal_status_message\':\n
parent.getUrl(), context.getId()),\n
keep_items={\'portal_status_message\':\n
translateString("You are not allowed to clone this object.")})\n translateString("You are not allowed to clone this object.")})\n
\n \n
# prepare query params\n # prepare query params\n
......
566 567
\ No newline at end of file \ No newline at end of file
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