From 55710bd0fd9c803d1d453066fba631dc734401df Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 17 Feb 2016 09:13:22 +0100 Subject: [PATCH] Fix redirection of /. --- accountant/frontend/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accountant/frontend/__init__.py b/accountant/frontend/__init__.py index 366b5a4..6832a0d 100644 --- a/accountant/frontend/__init__.py +++ b/accountant/frontend/__init__.py @@ -1,4 +1,4 @@ -from flask import Blueprint, render_template +from flask import Blueprint, redirect, url_for from flask.ext.assets import Environment, Bundle @@ -25,4 +25,4 @@ assets.register('frontend_css', frontend_css) @blueprint.route('/') def index(): - return blueprint.send_static_file('index.html') + return redirect(url_for('frontend.static', filename='index.html'))