app->getBaseUrl()->mod("./github/callback"); $location = $this->github->getAuthUrl($callback); $this->app->redirect($location); if ($returnto = $this->app->getRequest()->getQuery("returnto")) { $this->session->returnto = $returnto; } } }