#143 - fixing Jeff's original issue with categories. Now the URL generated will be of an already persisted containing entity if possible