diff --git a/flask/blueprints.py b/flask/blueprints.py index 8bbc9521..6ac24d93 100644 --- a/flask/blueprints.py +++ b/flask/blueprints.py @@ -147,7 +147,10 @@ class Blueprint(_PackageBoundObject): self._got_registered_once = True state = self.make_setup_state(app, options, first_registration) if self.has_static_folder: - state.add_url_rule(self.static_url_path + '/', + rule = self.static_url_path + if self.url_prefix == '/': + rule = self.name + rule + state.add_url_rule(rule + '/', view_func=self.send_static_file, endpoint='static')