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'))