Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing issue where admin revere routing was possibly unsuccessful due…

… to differences in action param between route and url arrays. Fixes #44 and #6173
  • Loading branch information...
commit bcbdb1cf1dd3811c44bf34ab65169a55d38f8fb5 1 parent 12457ac
@markstory markstory authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  cake/libs/router.php
View
3  cake/libs/router.php
@@ -763,6 +763,9 @@ function url($url = null, $full = false) {
} else {
$params = end($_this->__params);
}
+ if (isset($params['prefix']) && strpos($params['action'], $params['prefix']) === 0) {
+ $params['action'] = substr($params['action'], strlen($params['prefix']) + 1);
+ }
}
$path = array('base' => null);
Please sign in to comment.
Something went wrong with that request. Please try again.