diff --git a/htman/htman.py b/htman/htman.py index ca43d92..f825977 100644 --- a/htman/htman.py +++ b/htman/htman.py @@ -47,6 +47,9 @@ if "HTMAN_CONFIG" in os.environ: CONFIG_FILE_LOCATIONS = [os.environ["HTMAN_CONFIG"]] @bobo.query('') +def redirect_frontpage(): + return bobo.redirect(web_defaults["base_url"] + '/') + @bobo.query('/') def show_frontpage(): values = web_defaults.copy()