fix uri for category, pageitem, etc