id is usually an int,but cid is usually an array...
I think what we should to is to fetch entire URI there with Juri and clean it, so it works with various cases