Skip to content

Commit bcbdb1c

Browse files
committed
Fixing issue where admin revere routing was possibly unsuccessful due to differences in action param between route and url arrays. Fixes #44 and #6173
1 parent 12457ac commit bcbdb1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cake/libs/router.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,9 @@ function url($url = null, $full = false) {
763763
} else {
764764
$params = end($_this->__params);
765765
}
766+
if (isset($params['prefix']) && strpos($params['action'], $params['prefix']) === 0) {
767+
$params['action'] = substr($params['action'], strlen($params['prefix']) + 1);
768+
}
766769
}
767770
$path = array('base' => null);
768771

0 commit comments

Comments
 (0)