REST controller update

Updated REST controller to use REQUEST_URI rather than REDIRECT_URL