You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an issue with absolute image paths. Images with an absolute path (e.g. /im/test.png) are turned into (.//im/test.png), which results in errors because the path is invalid and images cannot be found.
Problem
I've got an issue with absolute image paths. Images with an absolute path (e.g. /im/test.png) are turned into (.//im/test.png), which results in errors because the path is invalid and images cannot be found.
Cause
The error caused by these lines of urls.py:
mkdocs-print-site-plugin/mkdocs_print_site_plugin/urls.py
Lines 195 to 196 in 95f3b88
Proposed Fix
Replace
new_url = '../' + new_url
with
new_url = os.path.join('../', new_url)
to prevent absolute paths from being overwritten.
The text was updated successfully, but these errors were encountered: