diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml index 7e63d0a3784e8a5e40308f871c5a68dcbd95216d..9997958ece9250edc52f18613f50ef9735e7c9a4 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml @@ -94,7 +94,7 @@ - change the behaviour of WebSection_getPermanentURL\n for documents which are not published.\n """\n -html_portal_type_list = (\'Web Site\', \'Web Section\', \'Web Page\')\n +html_portal_type_list = (\'Web Site\', \'Web Section\')#, \'Web Page\')\n portal_type = document.getPortalType()\n \n # If no reference is defined, no way to build a permanent URL.\n @@ -109,6 +109,7 @@ portal = context.getPortalObject()\n valid_portal_type_list = portal.getPortalDocumentTypeList()\n portal_type = document.getPortalType()\n if portal_type not in valid_portal_type_list:\n +\n if view and portal_type not in html_portal_type_list:\n return \'%s/view\' % document.absolute_url()\n return document.absolute_url()\n @@ -124,6 +125,7 @@ if document.getValidationState() not in validation_state:\n # Return the URL\n if view and portal_type not in html_portal_type_list:\n return \'%s/%s/view\' % (context.absolute_url(), reference)\n +\n return "%s/%s" % (context.absolute_url(), reference)\n </string> </value> </item> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 011b5d345761bd8418fb3835cf514a7ceb80b832..acecfee9f6a48940fe277717833f56c498abd940 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -961 \ No newline at end of file +962 \ No newline at end of file