- // ... try to apply base path if valid ...
- if( !base.IsReference() )
- {
- wxURI path(myfullurl);
- path.Resolve( base );
- myfullurl = path.BuildUnescapedURI();
- }
- else
+ // ... try to apply base path if valid ...
+ if( !base.IsReference() )
+ {
+ wxURI path(myfullurl);
+ path.Resolve( base );
+ myfullurl = path.BuildUnescapedURI();
+ }
+ else
+ {
+ // ... or force such addition if not included already
+ if( !current.GetPath().Contains(base.GetPath()) )