Commit 31788581 authored by Fabien Morin's avatar Fabien Morin

revert r28788 because it is not consistent to add "/view" only in some case....

revert r28788 because it is not consistent to add "/view" only in some case. For example, in some cases, we want to have permanent url of images without "/view", and with this method is was not possible.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30523 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b7d13fa
......@@ -110,12 +110,7 @@ if document.getValidationState() not in validation_state:\n
return document.absolute_url()\n
\n
# Return the URL\n
# XXX we need to add \'/view\' in web view\'s permanent URL for non-Web Page documents.\n
# If we change the behaviour of index_html() to same as view(), we can remove \'/view\'. \n
if portal_type == \'Web Page\':\n
return "%s/%s" % (context.absolute_url(), reference)\n
else:\n
return "%s/%s/view" % (context.absolute_url(), reference)\n
return "%s/%s" % (context.absolute_url(), reference)\n
</string> </value>
</item>
<item>
......
867
\ No newline at end of file
868
\ 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