-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for site.baseurl, workaround #618
Comments
ok thanks im going to try and farm this in to my on |
Not sure if this has since been fixed, but I'm finding that this url swap works for this case: I think the issue in the original example is possibly the use of The docs on this could definitely be clearer though -- I figured out my url swap by debugging the code. |
@PeterJCLaw Thank you. You are quite right: I was using duff syntax, and the solution you give works for me also. I have no idea what I thought I was doing with |
When using html-proofer on a Jekyll site with non-empty baseurl such as
/test
, all internal links are reported as broken.It would be great to be able to specify something like
--internal_baseurl "BASEURL"
on the command line, and then have the checker prepend the value ofBASEURL
to all internal links. This would also locate instances whereBASEURL
was incorrectly not prepended, and be extremely useful to Jekyll users.Others have found a workaround with the url_swap option, but it does not allow replacing eg
/test
with the empty string or with/
The workaround working for me is:
The text was updated successfully, but these errors were encountered: