Magento setBeforeAuthUrl() redirects me to port 82 -
i want customer redirected page after logging in.
<?php mage::getsingleton('customer/session')->setbeforeauthurl(mage::helper('core/url')->getcurrenturl()); ?> <p><a href="<?php echo mage::helper('customer')->getloginurl() ?>">login</a> the url after redirection fine, except 1 detail:
http://mymagentostore.com:82/rest/of/url/
instead of
http://mymagentostore.com/rest/of/url/
which results in 404 not found error.
not sure caused this, although used workaround in example below , worked
mage::getsingleton('customer/session')->setbeforeauthurl(mage::geturl('part/of/url', array('param1' => $this->getrequest()->getparam('param1'))));
Comments
Post a Comment