Welcome Guest, Not a member yet? Register   Sign In
ruri_string() when on index page
#2

[eluser]coolfactor[/eluser]
Further to this issue:

There is a logic error in Router::_compile_segments() that causes this issue. This method terminates early if there are no segments in the actual uri used to access the current page. The early termination prevents the rewritten segment array from being updated, which happens at the end of the function:

Code:
// Update our "routed" segment array to contain the segments.
// Note: If there is no custom routing, this array will be
// identical to $this->segments
$this->rsegments = $segments;

The included comment is technically incorrect since it doesn't take the index page into consideration. The rewritten segment array should always contain at least 2 segments. It should always represent the real "path" to the controller method requested, including the default controller's index method.


Messages In This Thread
ruri_string() when on index page - by El Forum - 01-12-2008, 03:13 AM
ruri_string() when on index page - by El Forum - 01-12-2008, 03:25 AM
ruri_string() when on index page - by El Forum - 01-12-2008, 08:26 AM
ruri_string() when on index page - by El Forum - 01-12-2008, 10:11 AM
ruri_string() when on index page - by El Forum - 01-12-2008, 10:24 AM
ruri_string() when on index page - by El Forum - 01-19-2008, 07:54 AM
ruri_string() when on index page - by El Forum - 01-19-2008, 01:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB