query web
should make all links absolute
#12583
Labels
enhancement
New feature or request
needs-triage
An issue that hasn't had any proper look
networking
All about our `http` and `url` commands and everything going accross the network.
Related problem
Currently,
query web
returns links are they are on the website, if they are relative, they are returned relative. I believe that the desired behavior is to return links in the absolute form.This is the behavior of for example Chrome. In the JS console
$$('a[href$=pdf]').map(x => x.href)
will return links in the absolute form even if they are relative.Describe the solution you'd like
Links should be returned in absolute form. Possibly, there could be a
--raw
option that will return links in the form as it is on the site.Describe alternatives you've considered
Users would be making links absolute themselves. I don't think anyone ever wants relative links.
Additional context and details
No response
The text was updated successfully, but these errors were encountered: