Redirect to dashboard when visiting the hoem page while signed in.
This commit is contained in:
@@ -39,7 +39,7 @@ def index(request):
|
||||
''' Redirects to main page -- info page if user authenticated, or marketing if not
|
||||
'''
|
||||
if settings.COURSEWARE_ENABLED and request.user.is_authenticated():
|
||||
return redirect('/courses')
|
||||
return redirect(reverse('dashboard'))
|
||||
else:
|
||||
csrf_token = csrf(request)['csrf_token']
|
||||
# TODO: Clean up how 'error' is done.
|
||||
|
||||
Reference in New Issue
Block a user