SWC-1043: set target if outside client host
new test
from code review
Merge pull request #688 from jay-hodgson/SWC-1043

Swc-1043: pass client host info to server, and set href target based on it.