Implemented the getRedirectLink functionality.