fixed problem with redirect url detection
Merge pull request #26 from gerbal/grant-dev

fixed problem with redirect url detection fixes #21