From ceb3c5e252cdce1edad97d1d3b7b70d11b406cc3 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 11 Dec 2022 17:29:02 -0500 Subject: [PATCH] static: Fix section linking on index.html --- goathacks/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/goathacks/__init__.py b/goathacks/__init__.py index fe3373b..9539750 100644 --- a/goathacks/__init__.py +++ b/goathacks/__init__.py @@ -1,4 +1,4 @@ -from flask import Flask, render_template, send_from_directory +from flask import Flask, redirect, render_template, send_from_directory from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager @@ -46,6 +46,9 @@ def create_app(): # Homepage @app.route("/") + def index_redirect(): + return redirect("/index.html") + @app.route("/index.html") def index(): return render_template("home/index.html")