From f13870731c100d3ed7daa5d96a75b697973def77 Mon Sep 17 00:00:00 2001 From: David Lord Date: Sun, 29 Apr 2018 15:32:12 -0700 Subject: [PATCH] allow empty prefix and no lead slash in bp route --- flask/blueprints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/blueprints.py b/flask/blueprints.py index 8311e580..3bdb3d9e 100644 --- a/flask/blueprints.py +++ b/flask/blueprints.py @@ -65,7 +65,7 @@ class BlueprintSetupState(object): to the application. The endpoint is automatically prefixed with the blueprint's name. """ - if self.url_prefix: + if self.url_prefix is not None: rule = '/'.join((self.url_prefix, rule.lstrip('/'))) options.setdefault('subdomain', self.subdomain) if endpoint is None: