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