From 4c7ed4b7beed02bdbf2f66aab5a956c36a701c72 Mon Sep 17 00:00:00 2001 From: lars Date: Tue, 17 Jul 2012 09:19:34 +0000 Subject: [PATCH] avoid problems with missing trailing slash --- htman.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htman.py b/htman.py index ca43d92..f825977 100644 --- a/htman.py +++ b/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()