Relative paths result in false broken link #29

Open
opened 2022-04-24 03:30:21 +02:00 by wagesj45 · 0 comments
wagesj45 commented 2022-04-24 03:30:21 +02:00 (Migrated from github.com)

When using any relative link structures, the scan will generate a false broken link. It appears that siteinspector is attempting to follow the path relative to its own root rather than the root of the site that it is looking at.

For example, scanning domain.com with a relative link to href="./css_folder/styles.css" will result in a broken link report pointing to siteinspector-host.local/css_folder/styles.css.

When using any relative link structures, the scan will generate a false broken link. It appears that siteinspector is attempting to follow the path relative to its own root rather than the root of the site that it is looking at. For example, scanning `domain.com` with a relative link to `href="./css_folder/styles.css"` will result in a broken link report pointing to `siteinspector-host.local/css_folder/styles.css`.
dan added this to the siteinspector project 2025-10-26 13:11:45 +01:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.