Skip to content

Commit

Permalink
Log urljoin
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Jul 5, 2024
1 parent 9af55fd commit 278af83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/make_relative_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def on_page_content(html, page, config, files):
log.warning(f'env: {environ["BASE_URL"]}')
log.warning(f'page.url: {page.url}')
log.warning(f'href: {element["href"]}')
log.warning(urljoin(f"{environ['BASE_URL']}/", f"{page.url}/{element['href']}"))
element['href'] = urljoin(f"{environ['BASE_URL']}/", f"{page.url}/{element['href']}")
return soup.prettify()

Expand Down

0 comments on commit 278af83

Please sign in to comment.