title: Detect Back Button in Navigation Guards of Vue-Router
body: <p>How the route is changed, matters for my case.
  So, I want to catch when the route is changed by a back button of browser or gsm.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>router.beforeEach((to, from, next) =&gt; {
    if ( /* IsItABackButton &amp;&amp; */ from.meta.someLogica) {
      next(false) 
      return ''
    }
    next()
  })
  </code></pre>
  
  <p>Is there some built-in solutions that I can use instead of <code>IsItABackButton</code> comment? Vue-router itself hasn't I guess but any workaround could also work here. Or would there be another way preferred to recognize it?</p>