public function getUrl($path)
    {
        $regExp = '/\/\/|https?:/i';
        if (preg_match($regExp, $path)) {
            return $path;
        }
        try {
            $generated = call_user_func_array(
                [$this->getRouterGenerator(), 'generate'],
                func_get_args()
            );
        } catch (AuraException $caught) {
            $generated = false;
        }

        $basePath = rtrim($this->getRequest()->getBasePath(), '/');
        $path = $generated
            ? $generated
            : "{$basePath}/{$path}";

        return $path;
    }