Commit 562b35a4 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Kazuhiko Shiozaki

erp5_web_renderjs_ui: came_from can be an empty string.

parent 349ba1a7
......@@ -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