Skip to content

Commit

Permalink
GIT-2045: fix issue with tailing / getting appended
Browse files Browse the repository at this point in the history
  • Loading branch information
harshanarayana committed Mar 7, 2021
1 parent 0c97d63 commit 1d8836a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/blueprint_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _sanitize_blueprint(self, bp: "sanic.Blueprint") -> "sanic.Blueprint":
if self._url_prefix:
merged_prefix = "/".join(
u.strip("/") for u in [self._url_prefix, bp.url_prefix or ""]
)
).rstrip("/")
bp.url_prefix = f"/{merged_prefix}"
for _attr in ["version", "strict_slashes"]:
if getattr(bp, _attr) is None:
Expand Down

0 comments on commit 1d8836a

Please sign in to comment.