[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [donate/master] We only want one home.
commit b463199429201ccf018257d8bded6733e71b3c3d
Author: Peter Haight <peterh@xxxxxxxxxxxxxxx>
Date: Fri Dec 21 15:14:22 2018 -0800
We only want one home.
I'm not sure exactly what will happen if we name two routes "home", but
I think links might go to the second one and we just want it to always
go to /.
Issue #37989
---
src/routes.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/routes.php b/src/routes.php
index 7b57635c..706666c4 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -8,7 +8,7 @@ $app->get('/', function ($request, $response, $args) {
$app->get('/H', function ($request, $response, $args) {
$controller = new \Tor\DonateController($this);
return $controller->index($request, $response, $args);
-})->setName('home');
+});
$app->get('/campaign-totals', function($request, $response, $args) {
$controller = new \Tor\CampaignController($this);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits