Commit 71c29993 by Adam

Merge pull request #582 from edx/fix/adam/redirect

Fix/adam/redirect
parents 103788ae f85cfc11
...@@ -12,7 +12,7 @@ def landing(request, org, course, coursename): ...@@ -12,7 +12,7 @@ def landing(request, org, course, coursename):
# points to the temporary edge page # points to the temporary edge page
def edge(request): def edge(request):
return redirect('/dashboard') return redirect('/')
def event(request): def event(request):
......
...@@ -4,7 +4,6 @@ from django.shortcuts import redirect ...@@ -4,7 +4,6 @@ from django.shortcuts import redirect
from django_future.csrf import ensure_csrf_cookie from django_future.csrf import ensure_csrf_cookie
import student.views import student.views
import branding
import courseware.views import courseware.views
from mitxmako.shortcuts import marketing_link from mitxmako.shortcuts import marketing_link
from util.cache import cache_if_anonymous from util.cache import cache_if_anonymous
...@@ -26,11 +25,7 @@ def index(request): ...@@ -26,11 +25,7 @@ def index(request):
if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'): if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'):
return redirect(settings.MKTG_URLS.get('ROOT')) return redirect(settings.MKTG_URLS.get('ROOT'))
university = branding.get_university(request.META.get('HTTP_HOST')) return student.views.index(request, user=request.user)
if university is None:
return student.views.index(request, user=request.user)
return redirect('/')
@ensure_csrf_cookie @ensure_csrf_cookie
...@@ -44,8 +39,4 @@ def courses(request): ...@@ -44,8 +39,4 @@ def courses(request):
if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE', False): if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE', False):
return redirect(marketing_link('COURSES'), permanent=True) return redirect(marketing_link('COURSES'), permanent=True)
university = branding.get_university(request.META.get('HTTP_HOST')) return courseware.views.courses(request)
if university is None:
return courseware.views.courses(request)
return redirect('/')
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