diff options
Diffstat (limited to 'uploader/base_routes.py')
-rw-r--r-- | uploader/base_routes.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/uploader/base_routes.py b/uploader/base_routes.py index 88247b2..a20b7ff 100644 --- a/uploader/base_routes.py +++ b/uploader/base_routes.py @@ -1,5 +1,6 @@ """Basic routes required for all pages""" import os +from urllib.parse import urljoin from flask import ( Blueprint, @@ -23,7 +24,9 @@ def favicon(): @base.route("/", methods=["GET"]) def index(): """Load the landing page""" - return render_template("index.html" if user_logged_in() else "login.html") + return render_template("index.html" if user_logged_in() else "login.html", + gn2server_intro=urljoin(app.config["GN2_SERVER_URL"], + "/intro")) def appenv(): """Get app's guix environment path.""" |