fix authentication redirect url bug