views:

109

answers:

3

request.path gives me the clicked url. I need a return link on that page which on clicking, should return to Referrer page, just as it would happen in case of browser back arrow . I do not maintain any session and do not want to hardcode the referrer page url.

+1  A: 

How about trying Javascript instead?

 <a href="#" onclick="history.go(-1);">Go back</a>
thephpdeveloper
A: 

You can do so using Javascript:

<span onclick='javascript: history.back()'>Previous page</span>
Alan Haggai Alavi