8000 Fix subdomain inheritance for nested blueprints. by confuzeus · Pull Request #4855 · pallets/flask · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix subdomain inheritance for nested blueprints. #4855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from

Conversation

confuzeus
Copy link
Contributor

When child blueprints are mounted onto parents, they don't inherit the subdomain set by the parent.

This PR ensures that routes in child blueprint will be available at the same subdomain set by the parent.

However, children can also specify their own subdomain if necessary.

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

@confuzeus confuzeus force-pushed the fix_nested_subdomains branch from b9b927a to 8368872 Compare October 26, 2022 10:40
@pgjones
Copy link
Member
pgjones commented Oct 30, 2022

Could you retarget this to the 2.2.x branch (as bugfix)

@confuzeus confuzeus changed the base branch from main to 2.2.x October 31, 2022 08:04
@confuzeus confuzeus closed this Oct 31, 2022
@confuzeus confuzeus deleted the fix_nested_subdomains branch October 31, 2022 08:52
@confuzeus
Copy link
Contributor Author

Closed this in favor of #4856

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested blueprints are not respected when mounted on subdomains
7 participants
0