fixed problem with redirect url detection