Skip to content
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

flet-build: surround --base-url with slashes #2369

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/python/packages/flet/src/flet/cli/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ def handle(self, options: argparse.Namespace) -> None:
template_data["copyright"] = options.copyright
if options.team_id:
template_data["team_id"] = options.team_id
template_data["base_url"] = options.base_url

base_url = options.base_url.strip("/").strip()
template_data["base_url"] = "/" if base_url == "" else f"/{base_url}/"
template_data["route_url_strategy"] = options.route_url_strategy
template_data["web_renderer"] = options.web_renderer
template_data["use_color_emoji"] = (
Expand Down