Tag Archives: magento get current url without query string

Magento get current url without parameters


Magento get current url without parameters : Magento Get Current url without the parameter as


Magento get current url without parameters Syntax

 $request = $this->getRequest();
 $urlWithoutParameters = Mage::getBaseUrl(). $request->getRouteName() .'/'. $request->getControllerName() .'/'. $request->getActionName();
   

Which will return the current url without the including the base url

Magento get current url without parameters Example

http://example.com/category/fashion/latest