Browse Source

[config] Rewriting : prendre en compte dernier slash de l'url

dev
Guillaume Bourgeois 5 years ago
parent
commit
01f41a218d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/config/main.php

+ 2
- 2
common/config/main.php View File

@@ -75,8 +75,8 @@ return [
'showScriptName' => false,
'enableStrictParsing' => false,
'rules' => [
'<slug_producer:\w+>/' => 'site/index',
'<slug_producer:\w+>/<controller>/<action>' => '<controller>/<action>',
'<slug_producer:\w+>/?' => 'site/index',
'<slug_producer:\w+>/<controller>/<action>/?' => '<controller>/<action>',
],
],
'urlManagerFrontend' => [

Loading…
Cancel
Save