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

[eluser]coolfactor[/eluser]
Here's the function (in v1.5.4):
Code:
function ruri_string()
{
    return '/'.implode('/', $this->rsegment_array()).'/';
}

You can see it sandwiches the implosion of rsegment_array() between two slashes. The problem is that, when on the index page of the site, the segment array is actually empty, so the returned value is "//". Not exactly the result we're looking for.

The fault doesn't actually lie with this function, though, but this illustrates the problem nicely. The real issue is that the rewritten segment array *should* always contain the controller and method segments at the very minimum, even on the index page, but this currently isn't the case. This issue was reported months ago. Is this fixed in the SVN?

This issue doesn't present a problem for most sites, but it does for mine. My CMS is linking content against the rewritten url, which needs to be correct for all pages.

Thanks.


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