From 95eb3bcf0955f109fbab940ab8de045abee98c61 Mon Sep 17 00:00:00 2001 From: vrana Date: Tue, 6 Mar 2012 15:52:22 -0800 Subject: [PATCH] Respect query string when redirecting from missing trailing / Test Plan: /differential/filter/active/jakubv?status=all Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1798 --- .../AphrontApplicationConfiguration.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/aphront/applicationconfiguration/AphrontApplicationConfiguration.php b/src/aphront/applicationconfiguration/AphrontApplicationConfiguration.php index 97b930e069..c5ede0aac7 100644 --- a/src/aphront/applicationconfiguration/AphrontApplicationConfiguration.php +++ b/src/aphront/applicationconfiguration/AphrontApplicationConfiguration.php @@ -1,7 +1,7 @@ mapPath($path.'/'); if ($controller_class) { - return $this->buildRedirectController($path.'/'); + $uri = $request->getRequestURI()->setPath($path.'/'); + return $this->buildRedirectController($uri); } }