Change return of getLoginUrl to relative URL