Resolve encapsulation issue with urls