public function goToDesktop() { if (null === $this->desktopUrl) { throw new Exception('The desktop site is not set.'); } header("HTTP/1.1 302 Found"); header("Location: " . $this->desktopUrl); }