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
f85cfc11
Commit
f85cfc11
authored
Aug 05, 2013
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redirects lms landing page to student.views.index if there is no marketing site
resets the cms edge redirect to '/'
parent
103788ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
10 deletions
+1
-10
cms/djangoapps/contentstore/views/requests.py
+1
-1
lms/djangoapps/branding/views.py
+0
-9
No files found.
cms/djangoapps/contentstore/views/requests.py
View file @
f85cfc11
...
...
@@ -12,7 +12,7 @@ def landing(request, org, course, coursename):
# points to the temporary edge page
def
edge
(
request
):
return
redirect
(
'/
dashboard
'
)
return
redirect
(
'/'
)
def
event
(
request
):
...
...
lms/djangoapps/branding/views.py
View file @
f85cfc11
...
...
@@ -4,7 +4,6 @@ from django.shortcuts import redirect
from
django_future.csrf
import
ensure_csrf_cookie
import
student.views
import
branding
import
courseware.views
from
mitxmako.shortcuts
import
marketing_link
from
util.cache
import
cache_if_anonymous
...
...
@@ -26,12 +25,8 @@ def index(request):
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_MKTG_SITE'
):
return
redirect
(
settings
.
MKTG_URLS
.
get
(
'ROOT'
))
university
=
branding
.
get_university
(
request
.
META
.
get
(
'HTTP_HOST'
))
if
university
is
None
:
return
student
.
views
.
index
(
request
,
user
=
request
.
user
)
return
redirect
(
'/'
)
@ensure_csrf_cookie
@cache_if_anonymous
...
...
@@ -44,8 +39,4 @@ def courses(request):
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_MKTG_SITE'
,
False
):
return
redirect
(
marketing_link
(
'COURSES'
),
permanent
=
True
)
university
=
branding
.
get_university
(
request
.
META
.
get
(
'HTTP_HOST'
))
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