Skip to content

Commit fa6ec7d

Browse files
committed
rstrip the rightmost / in the url constructor for confluence api
1 parent 9ad2cbf commit fa6ec7d

File tree

2 files changed

+851
-851
lines changed

2 files changed

+851
-851
lines changed

src/mcp_atlassian/models/confluence/page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def from_api_response(cls, data: dict[str, Any], **kwargs: Any) -> "ConfluencePa
200200
url = None
201201
if base_url := kwargs.get("base_url"):
202202
page_id = data.get("id")
203-
203+
base_url = base_url.rstrip("/")
204204
# Use different URL format based on whether it's cloud or server
205205
is_cloud = kwargs.get("is_cloud", False)
206206
if is_cloud:

0 commit comments

Comments
 (0)