Handling slashes on URL parameters

后端 未结 1 1364
Happy的楠姐
Happy的楠姐 2021-01-23 08:34

I\'m running into some issues trying to guess how to handle URLs with parameters on Symfony+Twig.

I have this route:



        
相关标签:
1条回答
  • 2021-01-23 09:18

    try:

    <route id="artist.front" path="/artist/{kw}/">
        <default key="_controller">App\Web\Controllers\Front::homePage</default>
        <requirement key="kw">.+</requirement>
    </route>
    

    And remove the url encoding/decoding.

    0 讨论(0)
提交回复
热议问题