So one of the annoying things about SharePoint 2010 and SharePoint 2013 is that once users get to the search result page, there is no way to go back to the previous page without clicking the browser back button. Also, if you haven’t done a little customization, you lose the typical navigation at the top and often can not return to the Portal Home page. How can we remedy this?
There is an old method that was mentioned in SharePoint 2007, and still works for SharePoint 2013 since it is using out-of-box web parts to enable your ability to see the Home and Back button. We can add some code to a content editor web part to display a button on the page to let people go back to previous page and with search term displaying in the search box.
– Old 2007 Buttons (Feel free to create newer ones)
– 2013 Version uses more text-based buttons and you could do something like this on the Search page.
Here is the code to add to a content editor web part:
<img src=”_layouts/images/hhome.png” border=”0″ alt=””/>
< a onclick=”history.go(-1)” href=”#”>
<img src=”_layouts/images/back.gif” border=”0″ alt=””/>
< a onclick=”history.go(-1)” href=”#”>Back</a>
Obviously, you need to edit the URL for the home button to suit your needs. You can also edit the text that shows up on the page to better suite your needs as well, but this is a quick solution for your Search navigation.