diff --git a/src/IDF/Middleware.php b/src/IDF/Middleware.php index 013929d..f97b8f1 100644 --- a/src/IDF/Middleware.php +++ b/src/IDF/Middleware.php @@ -44,7 +44,7 @@ class IDF_Middleware function process_request(&$request) { $match = array(); - if (preg_match('#^/(?:api/p|p)/([\-\w]+)/?#', $request->query, $match)) { + if (preg_match('#^/(?:api/p|p|r)/([\-\w]+)/?#', $request->query, $match)) { try { $request->project = IDF_Project::getOr404($match[1]); } catch (Pluf_HTTP_Error404 $e) { diff --git a/src/IDF/conf/urls.php b/src/IDF/conf/urls.php index d79c998..532521a 100644 --- a/src/IDF/conf/urls.php +++ b/src/IDF/conf/urls.php @@ -245,7 +245,7 @@ $ctl[] = array('regex' => '#^/p/([\-\w]+)/source/changesrev/$#', 'model' => 'IDF_Views_Source_Svn', 'method' => 'changelogRev'); -$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/repo/(.*)$#', +$ctl[] = array('regex' => '#^/r/([\-\w]+)/(.*)$#', 'base' => $base, 'model' => 'IDF_Views_Source', 'method' => 'repository');