If I use "generate_shortest_url: true", and create a url like below
<a href="<?php echo url_for('@hoge?' . http_build_query(array('param1' => "aa", 'param2' => 0))) ?>" >link</a>
The rendered HTML is below
<a href="/frontend_dev.php/hoge?param1=aaa">link</a>
The "param2" was ignored because of the array_filter method in sfRoute.class.php
if ($this->options['extra_parameters_as_query_string'] && !$this->hasStarParameter())
{
// add a query string if needed
if ($extra = array_diff_key(array_filter($params), $this->variables, $defaults))
{
$url .= '?'.http_build_query($extra);
}
}
I think to remove this "array_filter" method in this logic.