From 5664731d8825ce074a5232190f2f8ec61d921782 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 16 Dec 2016 10:11:42 +0100 Subject: [PATCH] controllers: fix base url to omit scheme for when we connect through a https gateway --- app/Controller/Github.php | 1 + app/Controller/Github/Callback.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controller/Github.php b/app/Controller/Github.php index 7b7bdf6..7ec3094 100644 --- a/app/Controller/Github.php +++ b/app/Controller/Github.php @@ -68,6 +68,7 @@ abstract class Github implements Controller return true; } $this->app->redirect($this->app->getBaseUrl()->mod([ + "scheme" => null, "path" => "github/signin", "query" => new QueryString(["returnto" => $this->session->current]) ])); diff --git a/app/Controller/Github/Callback.php b/app/Controller/Github/Callback.php index fcd814f..bd8c0e5 100644 --- a/app/Controller/Github/Callback.php +++ b/app/Controller/Github/Callback.php @@ -35,7 +35,7 @@ class Callback extends Github $this->app->redirect($returnto); } else { $this->app->redirect( - $this->app->getBaseUrl()->mod("./github")); + $this->app->getBaseUrl()->mod(":./github")); } } $this->app->display("github/callback"); -- 2.30.2