Commit dcf5efdf authored by Ryan Herbert's avatar Ryan Herbert
Browse files fix all page redirect

The sample_set/all page was redirecting to an inexistant page if not
logged in
parent 5ecede9e
......@@ -146,7 +146,7 @@ def all():
start = time.time()
if not auth.user :
res = {"redirect" : URL('default', 'user', args='login', scheme=True, host=True,
vars=dict(_next=URL('run', 'index', scheme=True, host=True)))
vars=dict(_next=URL('sample_set', 'all', vars={'type': defs.SET_TYPE_PATIENT}, scheme=True, host=True)))
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
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