title: Nuxt - How to find the previous route?
body: <p>I am able to use <code>this.$router.go(-1)</code> to redirect a user to the previous route. However, I am not able to understand how I get get the information about the previous route before redirecting.</p>
  
  <p>Basically, by first reading what the previous route was, I want to make sure that the previous route was from the same domain and only then redirect to it, otherwise do something else.</p>