Added redirect for REST api