controllers: fix base url to omit scheme for when we connect through a https gateway
[pharext/pharext.org] / app / Controller / Github / Signin.php
index d753687a3b7928ed739bc4b0bc66dbc54dbbad8b..5f8b6a7709944527d477e9a75b0077796db97875 100644 (file)
@@ -38,13 +38,13 @@ class Signin extends Github
                                        if (($returnto = $this->app->getRequest()->getQuery("returnto"))) {
                                                $this->app->redirect($returnto);
                                        } else {
-                                               $this->app->redirect($this->app->getBaseUrl()->mod("./github"));
+                                               $this->app->redirect($this->app->getBaseUrl()->mod(":./github"));
                                        }
                                        return;
                                }
                        }
                }
-               $callback = $this->app->getBaseUrl()->mod("./github/callback");
+               $callback = $this->app->getBaseUrl()->mod(":./github/callback");
                $location = $this->github->getAuthUrl($callback);
                $this->app->redirect($location);
                if (($returnto = $this->app->getRequest()->getQuery("returnto"))) {