URL generation (with url_for, genUrl, link_to, etc) creates an invalid URL in certain circumstances. Take the following example:
url_for('module/action?param1=¶m2=val2')
Returns: http://my.domain.com/module/action/param1//param2/val2
.. which does not get properly parsed. It seems to me that it would be best to either have symfony parse "//" as an empty value (if possible), or have the URL generation not include empty parameters (thus creating /module/action/param2/val2 from the above example, completely removing the param1 parameter).
Also, if a trailing ampersand is included at the end of the string to be URL generated, such as:
url_for('module/action?param1=val1&')
Returns: http://my.domain.com/module/action/param1/val1%26
.. which appears to get parsed differently depending on if the no_script_name configuration variable is set in settings.yml (effectively making production & development environments act different). With no_script_name set to "off", it seems that getRequestParameter('param1') returns "val1". With no_script_name set to "on", it returns "val1&".
In my situation, having the URL generation discard trailing question marks, ampersands, and slashes, would be ideal.
On a somewhat related note, it would also be nice if trailing slashes in a URL didn't interfere with pulling up a page. Example:
This works fine: http://my.domain.com/module
This returns the "oops!" 404 error: http://my.domain.com/module/