LPS-50141 URL is inconsistent when accessing the site with a domain which is not virtual host.

This is a regression bug caused by LPS-43510.