I've received complaints that the links that my software is generating aren't following the W3C URL-specification. http://www.w3.org/Addressing/URL/url-spec.txt
The links generated looks like this: https://organization.proxive.se/proxive/https://www.google.com/
The software is a proxy and generates the links this way so that the proxy doesn't have to parse relative links. Examples: /maps/
, ../relative_link
.
Using a solution that uses query-string wouldn't allow this.
Is my usage correct of constructing the URL correct or should I URL encode everything after /proxive/
?
I can add that my solution works in all major browsers.
/proxive/
?"https://organization.proxive.se/proxive/?url=https://www.google.com/
and clicks a relative link to./hello/world/
. The user ends up onhttps://organization.proxive.se/proxive/hello/world/
instead ofhttps://organization.proxive.se/proxive/?url=https://www.google.com/hello/world/
BASE
URL has been specified in the document? (Or a root-relative URL like @StephenOstermiller mentions - unless perhaps your proxy works in the root of your site?)