Commit 6920866f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Redirect to the frontpage if no came_from parameter is provided

parent 0613644c
......@@ -6,7 +6,7 @@ from ZTUtils import make_query
portal = context.getPortalObject()
if (came_from is None):
came_from = context.getPermanentURL(context)
came_from = context.getPermanentURL(context.getWebSiteValue())
portal.portal_skins.updateSkinCookie()
portal.setupCurrentSkin(REQUEST)
......
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