Sfoglia il codice sorgente

Correction problème avec "/?" à la fin des URL

refactoring
parent
commit
a34b991774
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      common/config/main.php

+ 2
- 2
common/config/main.php Vedi 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…
Annulla
Salva