routing - How to Allow a "?" Character in a Route Parameter in symfony3 -
i user symfony3 in project , use routing in project similar bellow
user_anoref: path: /noref/{url} defaults: { _controller: userbundle:default:noref } requirements: url: ".+" methods: [get]
but when use in url ? character routing error .
i used url in routing
http://qnf.ir/noref/?http://eshoptech.ir
please me
change regex match http url strings, untested!
user_anoref: path: /noref/{url} defaults: { _controller: userbundle:default:noref } requirements: url: "(http[s]?:\/\/)?([^\/\s]+\/)(.*)" methods: [get]
Comments
Post a Comment