Skip to content

Commit

Permalink
router fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodevog committed Oct 21, 2023
1 parent 9bda3ae commit 073999f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions module/LogisticsBundle/Controller/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public function loginAction()
}

$this->redirect()->toRoute(
'logistics_catalog'
'logistics_catalog',
array(
'language' => $this->getLanguage()->getAbbrev(),
)
);

return new ViewModel();
Expand Down Expand Up @@ -108,7 +111,10 @@ public function shibbolethAction()
);
} else {
$this->redirect()->toRoute(
'logistics_catalog'
'logistics_catalog',
array(
'language' => $this->getLanguage()->getAbbrev(),
)
);
}

Expand Down
4 changes: 2 additions & 2 deletions module/LogisticsBundle/Resources/config/router.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
'logistics_catalog' => array(
'type' => 'Laminas\Router\Http\Segment',
'options' => array(
'route' => '[/:language]/logistics/catalog[/:action[/:order][/request/:request][/page/:page]][/]',
'route' => '[/:language]/logistics[/catalog[/:action[/:order][/request/:request][/page/:page]]][/]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'order' => '[0-9]*',
Expand Down Expand Up @@ -291,11 +291,11 @@
'logistics_admin_lease' => 'LogisticsBundle\Controller\Admin\LeaseController',
'logistics_admin_inventory' => 'LogisticsBundle\Controller\Admin\InventoryController',

'logistics_catalog' => 'LogisticsBundle\Controller\CatalogController',
'logistics_transport' => 'LogisticsBundle\Controller\TransportController',
'logistics_auth' => 'LogisticsBundle\Controller\AuthController',
'logistics_piano' => 'LogisticsBundle\Controller\PianoController',
'logistics_lease' => 'LogisticsBundle\Controller\LeaseController',
'logistics_catalog' => 'LogisticsBundle\Controller\CatalogController',
'logistics_inventory' => 'LogisticsBundle\Controller\InventoryController',
),
);

0 comments on commit 073999f

Please sign in to comment.