Created
September 12, 2015 09:49
-
-
Save vkathirvel/43b7b46b2f06ad6ebfb3 to your computer and use it in GitHub Desktop.
Magento remove SID=U from GetURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$categoryLink = Mage::getModel("catalog/category")->load(10)->getUrl(); | |
$pos = strpos($categoryLink, '?'); | |
$categoryLink = ($pos>0) ? substr($categoryLink, 0, $pos) : $categoryLink; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The right way to do this is explained here.