#502: [Patch] AgaviWebRouting.class.php
---------------------+------------------------------------------------------
Reporter: ross | Owner: dominik
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: routing | Version: 0.11.0RC4
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Old description:
> Currently with mod_rewrite turned on if I goto:
>
> http://mysite.com/search/content//1
>
> $_SERVER['QUERY_STRING'] converts it to:
> http://mysite.com/search/content/1
>
> Which has a number of issues, it messes up routing and my baseHref!
>
> $_SERVER['REQUEST_URI'] however does contain the original url:
> http://mysite.com/search/content//1
>
> Solution:
> If the URL is rewritten - use the REQUEST_URI as the basis for the $qs.
> Automatically converting the first ? if any to & as done automatically in
> the Query_String.
New description:
Currently with mod_rewrite turned on if I goto:
http://mysite.com/search/content//1
!$_SERVER['QUERY_STRING'] converts it to:
http://mysite.com/search/content/1
Which has a number of issues, it messes up routing and my baseHref!
!$_SERVER['REQUEST_URI'] however does contain the original url:
http://mysite.com/search/content//1
Solution:
If the URL is rewritten - use the REQUEST_URI as the basis for the $qs.
Automatically converting the first ? if any to & as done automatically in
the Query_String.
--
Ticket URL: <http://trac.agavi.org/ticket/502#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets