diff --git a/cd/project.py b/cd/project.py index c4e79d4..ad7aca1 100644 --- a/cd/project.py +++ b/cd/project.py @@ -1,8 +1,10 @@ """CI project.""" + from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING +from urllib import urljoin if TYPE_CHECKING: from cd.projects import Projects @@ -37,4 +39,4 @@ class Project: if value := projects.environment.get(variable, None): self.root = value # url - self.url = Path(projects.url) / self.name + self.url = urljoin(projects.url, self.name)