Commit f700c286 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Revisit the redirect statement in the default/index controller.

parent c8d77533
......@@ -20,9 +20,13 @@ def index():
session.role = ADMIN
if 'debug' in request.vars:
return redirect(URL('plugin_dbui', 'debug'))
del request.vars['debug']
url = URL('plugin_dbui', 'debug', args=request.args, vars=request.vars)
return redirect(URL('plugin_dbui', 'index'))
else:
url = URL('plugin_dbui', 'index', args=request.args, vars=request.vars)
return redirect(url)
def user():
......
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