Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
71c29993
Commit
71c29993
authored
Aug 05, 2013
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #582 from edx/fix/adam/redirect
Fix/adam/redirect
parents
103788ae
f85cfc11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
cms/djangoapps/contentstore/views/requests.py
+1
-1
lms/djangoapps/branding/views.py
+2
-11
No files found.
cms/djangoapps/contentstore/views/requests.py
View file @
71c29993
...
@@ -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
):
...
...
lms/djangoapps/branding/views.py
View file @
71c29993
...
@@ -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
(
'/'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment