clean up full path in route element