Skip to content
Snippets Groups Projects
Commit 453b087c authored by Adam G-H's avatar Adam G-H Committed by Ben Mullins
Browse files

Issue #3413564: Project Browser's routes should allow project IDs to contain dashes

parent 6c3a5b20
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,7 @@ class ProjectBrowserRoutes implements ContainerInjectionInterface { ...@@ -40,8 +40,7 @@ class ProjectBrowserRoutes implements ContainerInjectionInterface {
return []; return [];
} }
$routes = []; $routes = [];
$machine_name_regex = '[a-zA-Z0-9_]+'; $stage_id_regex = $machine_name_regex = '[a-zA-Z0-9_-]+';
$stage_id_regex = '[a-zA-Z0-9_-]+';
$routes['project_browser.stage.begin'] = new Route( $routes['project_browser.stage.begin'] = new Route(
'/admin/modules/project_browser/install-begin/{composer_namespace}/{project_id}', '/admin/modules/project_browser/install-begin/{composer_namespace}/{project_id}',
[ [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment