we should check last char to be "/" as well.
Otherwise users will look for /1/2/25 and get /1/2/253 as well