In Controller add uri() method to get the REQUEST_URI