VET-50 : implementation of the hook_domain_path() to avoid loop redirects in some cases.