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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -