In Magento I have this to get the the url of a category from its ID
$categoryLink = Mage::getModel("catalog/category")->load(10)->getUrl();
It works but at the end of url there is ?SID=somenumber
.
I know I could remove it from
System > Configuration > Web > Session Validation Settings > Use SID on Frontend
But I want to keep it active, so how can i get the url of category without the ?SID=somenumber
?