redirect backtohome page to previous pae

HELLO below i attaached a screen shot , in that if i click that back to home page it redirects to all products, but i need it to go to the previous page

You will need to provide more information. What is it you are trying to do? Share your code in a code block.