added the ability to generate non-absolute url