DOC-124, DOC-188: Cross-site search fixes preserving hostname, and (hopefully) fix right-rail search issue