RE: Session-persistent load balancing without load balanc... ยป loadBalancerLinkLyingForLinkSharing.patch
src/Wt/WAnchor.C | ||
---|---|---|
url = app->encodeUntrustedUrl(url);
|
||
std::string href = url;
|
||
element.setAttribute("href", href);
|
||
if(linkState.link.type() == WLink::InternalPath && app->environment().ajax() && href[0] == '/')
|
||
element.setAttribute("href", "http://www.myloadbalancer.com" + href);
|
||
else
|
||
element.setAttribute("href", href);
|
||
return !app->environment().hashInternalPaths()
|
||
&& href.find("://") == std::string::npos && href[0] != '/';
|
||
}
|