/** * Get the root URL for the request. * * @return string */ public function getCurrentUrl() { return $this->baseUrl ?: $this->request->url(); }