Skip to content

Commit 3b52ccc

Browse files
committed
Fix page action URLs to use dasherized format instead of camelCase
Inflector::variable() converts 'model_gesucht' to 'modelGesucht' which doesn't match CakePHP's URL conventions. Changed to Inflector::dasherize() which produces the expected 'model-gesucht' format.
1 parent b60f7f5 commit 3b52ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Admin/PagesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function index() {
2626
$page = substr($file, 0, -4);
2727
$pages[$page] = [
2828
'label' => Inflector::humanize($page),
29-
'action' => Inflector::variable($page),
29+
'action' => Inflector::dasherize($page),
3030
];
3131
}
3232

0 commit comments

Comments
 (0)