fixed error in get_redirect_end method and added explicit return
removed return line from get_redirect_method