I am tracking an error in my routing since quite some time now.
This is my route:
- Code: Select all
// Catalog route
$routeCatalog = Mvc\Router\Http\Segment::factory(array(
'route' => '/:segment',
'defaults' => array(
'__NAMESPACE__' => __NAMESPACE__ . '\Controller',
'controller' => 'catalog',
'action' => 'index'
)
));
which is then put together in a part route as follows:
- Code: Select all
// Catalog route assembled
$routePartCatalog = Mvc\Router\Http\Part::factory(array(
'route' => $routeCatalog,
'route_plugins' => $router->getRoutePluginManager(),
'may_terminate' => true,
'child_routes' => array(
'product' => $routeProduct,
'static' => $routeStatic
)
));
The part route is then added to the router:
- Code: Select all
$router->addRoute('catalog', $routePartCatalog, 5);
So this basically allows me to route urls like
somedomaindotcom/some-segment
or
somedomaindotcom/some-different-segment
which is all nice. But now; if I add any query string like
somedomaindotcom/some-different-segment?debug=yes
the routing completely fails resulting in a "The requested URL could not be matched by routing." error.
I would greatly appreciate any help around this topic.
Best regards
sArge

