Skip to content

Commit

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

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

return new ViewModel();
Expand Down
2 changes: 1 addition & 1 deletion module/LogisticsBundle/Controller/LeaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private function getPersonEntity()
'No person was authenticated!'
);

$this->redirect()->toRoute('logistics_catalog');
$this->redirect()->toRoute('logistics_transport');

return;
}
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 All @@ -251,7 +251,7 @@
'logistics_catalog_typeahead' => array(
'type' => 'Laminas\Router\Http\Segment',
'options' => array(
'route' => '[/:language]/logistics[/:order]/typeahead[/:string][/]',
'route' => '[/:language]/logistics/catalog[/:order]/typeahead[/:string][/]',
'constraints' => array(
'order' => '[0-9]*',
'language' => '(en|nl)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ul class="nav navbar-nav">
{% if hasAccess('logistics_catalog', 'overview') %}
<li {% if 'logistics_catalog' == getParam('controller') %}class="active"{% endif %}>
<a href="{{ url('logistics_catalog', {"language": language.getAbbrev()}) }}">{{ translate('Material') }}</a>
<a href="{{ url('logistics_catalog', {"language": language.getAbbrev()}) }}">{{ translate('Requests') }}</a>
</li>
{% endif %}
{% if hasAccess('logistics_inventory', 'index') %}
Expand Down

0 comments on commit dfc7238

Please sign in to comment.