From 74f1c4913a6d86839fc83e2fdcc5d95766de89d2 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 20 Nov 2017 23:49:13 +0100 Subject: [PATCH] Fix bug where routes using templates couldn't redirect --- common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.py b/common.py index 0fb8460..1b616f6 100644 --- a/common.py +++ b/common.py @@ -115,6 +115,9 @@ def mergeTemplate(path): objects = await func(*args, **kwargs) + if type(objects) is response.HTTPResponse: + return objects + objects.update({ "strip_unit": strip_unit, "escape_html": escape_html,