0

I have a problem when submitting a form and send the params with get method.

In browser address bar it shows not friendly url, like: -http://www.myDomainApp.com/app_dev.php/user/list?limit=10&offset=0

and I expected some like: -http://www.myDomainApp.com/app_dev.php/user/list/10/0

Anybody knows why, and how can I do the friendly url?

I found an explanation here of my problem, but I think this is not symfony 2.x. PS : I am using yml files for routing not annotations.

Please help.

  • Solution ... http://stackoverflow.com/questions/22413430/passing-route-url-format-to-symfony2-form-with-get-method/22430651?noredirect=1#22430651 – Vasile-Bogdan Raica Mar 16 '14 at 14:17

1 Answers1

0

Anybody knows why

Because that is how the form submission process is defined in the HTML specification.

and how can I do the friendly url?

Process the form data and issue a 301 redirect from the server.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335