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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -