diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirect.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirect.xml index 7ff2a2da516cbb1da707fe23580d6e94fa87b06a..fea59995a7d7f60cbc87d824efdf797bcd4c423f 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirect.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirect.xml @@ -66,7 +66,10 @@ request_form.update(kw)\n request_form = context.ERP5Site_filterParameterList(request_form)\n request_form.update(keep_items)\n \n -redirect_url = \'%s/%s\' % (context.absolute_url(), form_id)\n +if form_id == \'view\':\n + redirect_url = context.absolute_url()\n +else:\n + redirect_url = \'%s/%s\' % (context.absolute_url(), form_id)\n \n parameters = make_query(dict([(k, v) for k, v in request_form.items() if k and v is not None]))\n if len(parameters):\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 03c4ecbc9364bfb3480a824cafa2db3a0d236f71..ea934dee74ae0fce3ec3a9b5f4004b354cc01e47 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -1044 \ No newline at end of file +1045 \ No newline at end of file