Skip to content
Snippets Groups Projects
Commit 9d4043e4 authored by Matthew Mongeau's avatar Matthew Mongeau
Browse files

Redirect to dashboard when visiting the hoem page while signed in.

parent 7cfb8ddb
Branches
Tags
No related merge requests found
......@@ -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.
......
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