Fix improper redirect url when login via social plugin