cc-d: fixed several bugs related to permalinks now that they are no longer stored with url + sub in db

    no comments