Page URL tag to show complete url
Posted: Fri Apr 03, 2009 10:18 am
Hi All,
I'm trying to use this tag:
global $gCms;
$hm =& $gCms->GetHierarchyManager();
$curnode =& $hm->getNodeById($gCms->variables["page_id"]);
$curcontent =& $curnode->GetContent();
echo 'Page URL: ' . $curcontent->GetURL();
in the page template, and it gives me:
Page URL: http://DOMAIN.COM/index.php/page-alias
But the REAL URL of that page is:
Page URL: http://DOMAIN.COM/index.php?mact=_page- ... eturnid=56 .....
So How can I retrive the COMPLETE URL that I actually see in the browser url bar?
Thanks!
I'm trying to use this tag:
global $gCms;
$hm =& $gCms->GetHierarchyManager();
$curnode =& $hm->getNodeById($gCms->variables["page_id"]);
$curcontent =& $curnode->GetContent();
echo 'Page URL: ' . $curcontent->GetURL();
in the page template, and it gives me:
Page URL: http://DOMAIN.COM/index.php/page-alias
But the REAL URL of that page is:
Page URL: http://DOMAIN.COM/index.php?mact=_page- ... eturnid=56 .....
So How can I retrive the COMPLETE URL that I actually see in the browser url bar?
Thanks!