Added support for relative url generation