- assigned_to: nobody --> ebrehault
See e.g.:
onclick="location.href='http://localhost:56230/mnt/...db/plomino_documents/6d8393dd8b8b218ed1b0f6176148a730/EditDocument'"
Here are all the places where `onclick` sets `location.href` from a stored URL.
- PIMS should not store absolute URLs.
- When a stored path is used to create an URL, it should be translated to a VHOST path first.
src/Products.CMFPlomino/Products/CMFPlomino/skins/cmfplomino_templates/ActionBar.pt|8 col 20| tal:attributes="onclick python:'location.href=\''+here.navigationParent(here)+'/'+here.id+'/EditDocument\''" />
src/Products.CMFPlomino/Products/CMFPlomino/skins/cmfplomino_templates/ActionBar.pt|156 col 18| tal:attributes="onclick python:'location.href=\''+plominoaction.executeAction(plominotarget)+'\'';
src/Products.CMFPlomino/Products/CMFPlomino/skins/cmfplomino_templates/ActionBar.pt|166 col 20| tal:attributes="onclick python:'location.href=\''+here.navigationParent(here)+'\''" />
src/Products.CMFPlomino/Products/CMFPlomino/skins/cmfplomino_templates/ActionBar.pt|179 col 18| tal:attributes="onclick python:'if(confirm(\''+msg+' ?\')){location.href=\''+here.absolute_url()+'/delete?returnurl='+here.getParentDatabase().absolute_url()+'\'}'" />
src/Products.CMFPlomino/Products/CMFPlomino/skins/cmfplomino_templates/DisplayMessage.pt|13 col 56| <input type="button" class="context" tal:attributes="onclick python:test(returnurl, 'location.href=\''+returnurl+'\'', 'history.back()')" value="Continue" i18n:domain="CMFPlomino" i18n:attributes="value"/>