Commit 90a09809 authored by Andreas Valder's avatar Andreas Valder
Browse files

added support for legacy "?view=player&lectureid=<id>#content" style urls

parent 864e61ff
......@@ -278,6 +278,9 @@ def index():
# handle legacy urls...
if 'course' in request.args:
return redirect(url_for('course', handle=request.args['course']),code=302)
if 'view' in request.args:
if (request.args['view'] == 'player') and ('lectureid' in request.args) :
return redirect(url_for('lecture', id=request.args['lectureid']),code=302)
start = - timedelta(days=1)
end = start + timedelta(days=7)
Supports Markdown
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