FIx problem on url on entity. closes #2708