Skip to content

Commit 68cc07a

Browse files
authored
Fix: createUrlByContext (#563)
1 parent b558e74 commit 68cc07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JiraClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ protected function createUrlByContext(string $context): string
418418
{
419419
$host = $this->getConfiguration()->getJiraHost();
420420

421-
return $host.$this->api_uri.'/'.preg_replace('/\//', '', $context, 1);
421+
return $host.$this->api_uri.'/'.preg_replace('/^\//', '', $context, 1);
422422
}
423423

424424
/**

0 commit comments

Comments
 (0)