fixed problem with redirect url detection fixes #21

Fixes #21