title: javascript:history.back() OR homepage
body: <p>I would like to add a button that will take a user back a page OR if a user used direct url to get to that page (so, <code>.back()</code> would take them back to google for example) - a user will be redirected to my homepage.</p>
  
  <p>Looks like <code>javascript:history:back()</code> or <code>history.go</code> accept step attributes only (how many pages we can go back) and that is it. Will I have to tap into <code>session</code> or is there a way to do it with <code>history</code> object?</p>