Commit e842c8ea by ichuang

when redirecting to default chapter/section, replace space by _ in url

parent 74e01bb0
......@@ -295,7 +295,7 @@ def index(request, course=None, chapter=None, section=None,
if defchapter and defsection:
# jump there using redirect, so the user gets the right URL in their browser
newurl = '%s/courseware/%s/%s/%s/' % (settings.MITX_ROOT_URL,
get_course(request, course),
get_course(request, course).replace(' ','_'),
defchapter,
defsection)
log.debug('redirecting to %s' % newurl)
......
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