public function getBaseURL($include_locale = true)
    {
        $base = '//' . $_SERVER['HTTP_HOST'] . str_replace('index.php', '', $_SERVER['URL']);
        if ($include_locale && \Framework::i()->locale_set) {
            $base .= $this->getLinkLocale(\Framework::i()->locale) . '/';
        }
        return $base;
    }