Merge pull request #77 from elnur/generate-absolute-fix

Fix absolute URLs not being generated when a scheme requirement is given
Add support for hosts