From 708b90fccd4b49d8e9ab3a10033c29e6f0510753 Mon Sep 17 00:00:00 2001 From: William MARTIN Date: Tue, 4 Oct 2011 21:45:23 +0200 Subject: [PATCH] Fix url /p/aaa/issues/status/open/ --- src/IDF/Views/Issue.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 59f905c..083bd62 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -732,6 +732,13 @@ class IDF_Views_Issue { $prj = $request->project; $status = $match[2]; + + if (mb_strtolower($status) == 'open') { + $url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::index', + array($prj->shortname)); + return new Pluf_HTTP_Response_Redirect($url); + } + $title = sprintf(__('%s Closed Issues'), (string) $prj); // Get stats about the issues $open = $prj->getIssueCountByStatus('open');