Background:
- Using --base-url and --root-dir together is surprising. The root-dir (which is a filesystem path) gets prefixed onto the base URL (which is a URL). This happens to build a valid URL on Unix, but it will almost always be a broken link. On Windows, it will put C:\ inside the URL which is surely wrong. Discussed in lycheeverse/lychee#1912 (comment)
- Using --base-url with local files can be surprising, because the local folder structure is not considered when making the URLs - the local folder path is dropped entirely. lycheeverse/lychee#1296 was a similar issue (now fixed) for remote URLs. This problem is similar but for local URLs instead.
- Using --root-dir surprisingly (and negatively) affects
/links in remote HTML files lycheeverse/lychee#1964
Questions:
- How to communicate this change to users? Should the current behaviour be kept accessible?