Commit 9387a418 authored by Kevin Deldycke's avatar Kevin Deldycke

Use absolute_url() method to construct object url. absolute_url() is...

Use absolute_url() method to construct object url. absolute_url() is differente from getPath(): the former adapt itself depending of the context (are we in website or site).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8785 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5089c827
......@@ -1915,7 +1915,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
error = sys.exc_info())
else:
try:
url = '%s/view?selection_index=%s&selection_name=%s&reset:int=1' % (brain.getPath(), self.index, selection_name)
url = '%s/view?selection_index=%s&selection_name=%s&reset:int=1' % (brain.absolute_url(), self.index, selection_name)
except AttributeError:
pass
......
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