Options
Back to Discussions

wouldn't it be much better when users click on "Back to Discussions" link, it will take them back to the page where they were at instead of going back to the index.php?
I looked into comments_foot.php and the the code looks like this:
So my question is how to change that line to take the users back to let's say /discussions/2/or discussions/3/ etc.?
I looked into comments_foot.php and the the code looks like this:
<a href="'.GetUrl($this->Context->Configuration, 'index.php').'" class="left">'.$this->Context->GetDefinition('BackToDiscussions').'</a>
So my question is how to change that line to take the users back to let's say /discussions/2/or discussions/3/ etc.?
0
This discussion has been closed.
Comments
<a href="javascript:history.back()" class="left">'.$this->Context->GetDefinition('BackToDiscussions').'</a>
It worked but I was just not sure if this the way to do it.