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
93cbb2e4
Commit
93cbb2e4
authored
May 07, 2013
by
Greg Price
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redirect from LMS courses page to marketing courses page
(Only if marketing site is enabled)
parent
a081ba4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lms/djangoapps/branding/views.py
+6
-2
No files found.
lms/djangoapps/branding/views.py
View file @
93cbb2e4
...
...
@@ -6,6 +6,7 @@ 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
...
...
@@ -36,9 +37,12 @@ def index(request):
@cache_if_anonymous
def
courses
(
request
):
"""
Render the "find courses" page. If subdomain branding is on, this is the
university profile page, otherwise it's the edX courseware.views.courses page
Render the "find courses" page. If the marketing site is enabled, redirect
to that. Otherwise, if subdomain branding is on, this is the university
profile page. Otherwise, it's the edX courseware.views.courses page
"""
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
:
...
...
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