/**
  * @return array
  *
  * At least one element will be present within the array.
  * Potential keys within this array are:
  * scheme - e.g. http
  * host
  * port
  * user
  * pass
  * path
  * query - after the question mark ?
  * fragment - after the hashmark #
  */
 protected function getParseUrlByCurrentLocale()
 {
     // for one domain by lang
     if ((int) ConfigQuery::read('one_domain_foreach_lang', 0) === 1) {
         // $langUrl = $this->session->getLang()->getUrl();
         $langUrl = LangQuery::create()->findOneByLocale($this->session->getLang()->getLocale())->getUrl();
         if (!empty($langUrl) && false !== ($parse = parse_url($langUrl))) {
             return $parse;
         }
     }
     // return config url site
     $urlSite = ConfigQuery::read('url_site');
     if (!empty($urlSite) && false !== ($parse = parse_url($urlSite))) {
         return $parse;
     }
     // return current host
     return parse_url($this->request->getUri());
 }