use return instead of raise exception when redirect limit is exceeded