parent
fa1ee70668
commit
d7b6c1f670
2 changed files with 56 additions and 0 deletions
|
|
@ -453,6 +453,15 @@ class Blueprint(Scaffold):
|
|||
for blueprint, bp_options in self._blueprints:
|
||||
bp_options = bp_options.copy()
|
||||
bp_url_prefix = bp_options.get("url_prefix")
|
||||
bp_subdomain = bp_options.get("subdomain")
|
||||
|
||||
if bp_subdomain is None:
|
||||
bp_subdomain = blueprint.subdomain
|
||||
|
||||
if state.subdomain is not None and bp_subdomain is None:
|
||||
bp_options["subdomain"] = state.subdomain
|
||||
elif bp_subdomain is not None:
|
||||
bp_options["subdomain"] = bp_subdomain
|
||||
|
||||
if bp_url_prefix is None:
|
||||
bp_url_prefix = blueprint.url_prefix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue