Commit 864e61ff authored by Andreas Valder's avatar Andreas Valder
Browse files

added support for legacy "/?course=<handle>" style urls

parent f91ffa13
......@@ -275,6 +275,10 @@ def fixnl(s):
@register_navbar('Home', icon='home')
def index():
# handle legacy urls...
if 'course' in request.args:
return redirect(url_for('course', handle=request.args['course']),code=302)
start = - timedelta(days=1)
end = start + timedelta(days=7)
upcomming = query('''
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