cancel
Showing results for 
Search instead for 
Did you mean: 

How to call the referer from the LOG IN link to a link in a CMS block

How to call the referer from the LOG IN link to a link in a CMS block

The LOG IN top link in Magento 1.9 has this format,

 

http://www.mydomain.com/customer/account/login/referer/blahblahblah,,/

 

Is there a way to insert the "blahblahblah" referer into another link on a page? Like a custom login link on a CMS page?

I haven't found a single solution in about 30 threads related to the matter that can do it.

 

The issue is that this referrer seems to facilitate the redirection of the logged in user back to the CMS page they were on. Without this referer, the user is directed to the Dashboard (regardless of the Customer Configuration > Login Options setting in the back office.

 

Thanks in advance for an advice given.

1 REPLY 1

Re: How to call the referer from the LOG IN link to a link in a CMS block

For this add cms block inside cms page in update layout and inside cms block call your phtml for link like this  
{{block type="core/template" template="your_module/yourtemplate.phtml"}}