Skip to content

Commit

Permalink
Do not include the Request action when it is the default Route action…
Browse files Browse the repository at this point in the history
… in Request::uri. Fixes #3086
  • Loading branch information
Woody Gilk committed Jul 15, 2010
1 parent 2dfe465 commit a89a7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public function uri(array $params = NULL)
$params['controller'] = $this->controller;
}

if ( ! isset($params['action']))
if ( ! isset($params['action']) AND $this->action !== Route::$default_action)
{
// Add the current action
$params['action'] = $this->action;
Expand Down

0 comments on commit a89a7a4

Please sign in to comment.