/**
  * Returns the main URL of the current frontend or backend section.
  * If a request is sent to frontend, then method return framework's root frontend URL.
  * If a request is sent to backend, then method returns main backend URL of the app responsible for processing request.
  *
  * @param  bool  $absolute  Flag requiring to return the absolute URL instead of the relative one (default value).
  * @return  string
  */
 public function getUrl($absolute = false)
 {
     $url = $this->config->getRootUrl($absolute);
     if ($this->config->getEnvironment() == 'backend' && ($app = $this->getApp())) {
         $url .= $this->config->getBackendUrl() . '/';
         if ($app !== 'webasyst') {
             $url .= $app . '/';
         }
     }
     return $url;
 }