if (params.length () > 0)
url.append (CharConst ("?")).append (params);
if (anchor.length () > 0)
- url.append (CharConst ("#")).append (anchor);
+ url.append (anchor);
return true;
} else {
return false;
// "[proto]:" part is excluded.
bool WikiMotorObjVec::splitURL_2 (WikiFormat* wiki, ustring& host, ustring& path, ustring& params, ustring& anchor) {
-
if (size () > 0) {
WikiMotorObj* o;
o = operator [] (0).get ();
if (params.length () > 0)
url.append (CharConst ("?")).append (params);
if (anchor.length () > 0)
- url.append (CharConst ("#")).append (anchor);
+ url.append (anchor);
return true;
} else {
return false;
if (params.length () > 0)
url.append (CharConst ("?")).append (params);
if (anchor.length () > 0)
- url.append (CharConst ("#")).append (anchor);
+ url.append (anchor);
return true;
}
return false;
}
if (fanchor) {
- anchor = percentEncode (vanchor.textOut (wiki));
+ anchor = ustring (CharConst ("#")).append (percentEncode (vanchor.textOut (wiki)));
}
return true;
if (params.length () > 0)
url.append (CharConst ("?")).append (params);
if (anchor.length () > 0)
- url.append (CharConst ("#")).append (anchor);
+ url.append (anchor);
return true;
} else {
return false;