Running PHP 532 and CI 172:
Test code in a controller function:
$this->load->helper('url');
$assoc_uri = $this->uri->uri_to_assoc(1); // get full uri
$test_link = anchor($assoc_uri, 'test link'); // bugged? skips the first key?
$test_link2 = anchor($this->uri->assoc_to_uri($assoc_uri), 'test link 2');
The first link is bugged. It loses the name of the controller in the final URI. Compare that with the second use of anchor (string), using the same data, that works as expected. For example:
test_link = http://localhost/testsite/about (broken)
test_link2 = http://localhost/testsite/welcome/about (works)
Is this a known issue? Am I missing something glaringly obvious here?
cheers,
// SM
