fix on redirect after authentication to original url for safari