URL parses its content in the constructor and exposes protocol, domain, path and page through separate properties.
Implemented a method that, given a (posibly relative) link, returns an absolute URL.