#434: Do not override default values using matched incoming parameters when
generating the same route unless the route is implied
---------------------+------------------------------------------------------
Reporter: david | Owner: dominik
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: routing | Version: 0.11.0RC2
Severity: major | Keywords:
---------------------+------------------------------------------------------
Example:
{{{
<route name="tags" pattern="^/tag/(tag:[^/]+)/({page:\d+}/)?$">
<default for="page">{1}/</default>
</route>
}}}
The incoming URL is "/tag/agavi/3", then
{{{
$ro->gen('tags', array('tag' => 'water'));
}}}
will produce "/tag/water/3/", which is not quite what we want, we want
"/tag/water/1/".
This behavior should remain for routes set to {{{imply="true"}}}, but not
for "normal" ones.
--
Ticket URL: <http://trac.agavi.org/ticket/434>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets