Query string doesnt work when not logged in.
Permalink
Hi Guys,
I'm working with a custom Block which involved a query string. When I'm logged in as Administrator, everything works perfect unfortunately when I'm logged out, I my query string string is shoing on the address bar but the page is not displaying the correct information.
Sample query string:http://c5.demop_site.com/calendar/?date=2012-12...
calendar segment is being generated by a custom function from my controller which is written below.
http://c5.demop_site.com/<?php... echo $controller->getCurrentUrl(); ?>/?date=2012-12
public function getCurrentUrl(){
global $c;
$nh = Loader::helper('navigation');
$cpl = $nh->getCollectionURL($c);
return $cpl;
}
The function also doesnt work when I'm not logged in, so I I'm wondering if this is the cause of the error on my query string.
I'm working with a custom Block which involved a query string. When I'm logged in as Administrator, everything works perfect unfortunately when I'm logged out, I my query string string is shoing on the address bar but the page is not displaying the correct information.
Sample query string:http://c5.demop_site.com/calendar/?date=2012-12...
calendar segment is being generated by a custom function from my controller which is written below.
http://c5.demop_site.com/<?php... echo $controller->getCurrentUrl(); ?>/?date=2012-12
public function getCurrentUrl(){
global $c;
$nh = Loader::helper('navigation');
$cpl = $nh->getCollectionURL($c);
return $cpl;
}
The function also doesnt work when I'm not logged in, so I I'm wondering if this is the cause of the error on my query string.