Join URLs with urljoin again

The base URL needs a trailing "/", so the part after the first "/" won't
be ignored.
This commit is contained in:
PinieP 2024-11-02 22:30:06 +01:00 committed by I-Al-Istannen
parent 998abc3afd
commit 79bfaa2556

View file

@ -209,7 +209,7 @@ instance's greatest bottleneck.
async def _crawl_course(self, course_id: int) -> None:
# Start crawling at the given course
root_url = url_set_query_param(
self._base_url + "/goto.php",
urljoin(self._base_url + "/", "goto.php"),
"target", f"crs_{course_id}",
)