Commit 89838d4f authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_web_renderjs_ui: came_from can be an empty string.

parent 6041ffc7
......@@ -29,8 +29,10 @@ if (portal.portal_membership.isAnonymousUser()):
query_dict = {
'portal_status_message': message,
'came_from' : came_from
}
if came_from:
query_dict['came_from'] = came_from
url = '%s/login_form?%s' % (context.absolute_url(), make_query(query_dict))
RESPONSE.redirect(url)
else:
......
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