title: How to create back button using NuxtJS <nuxt-link />?
body: <p>I have a fairly new Nuxt project I'm working on, and I'm running in to an issue setting up a back button. I even looked at the "<a href="https://github.com/MaximVanhove/vue-router-back-button" rel="noreferrer">vue-router-back-button</a>" package which still doesn't want to work (I was getting unrelated errors). With the code that I have, the link wants to navigate to the same page that the user is currently on, rather than the one previous. I do receive an error on my server that there is an <code>Invalid prop: type check failed for prop "to". Expected String, Object, got Function.</code>, however would I make the back button dynamic?</p>
  
  <pre><code>&lt;template&gt;
    &lt;div class="page-title-wrapper"&gt;
      &lt;nuxt-link
        v-if="back"
        :to="to"
        class="back-wrapper"&gt;
        &lt;icon
          name="angle-left"
          fill="#9e9e9e"
          height="20px"
          width="20px"
          class="d-flex" /&gt;
        &lt;p class="display-1 grey--text"&gt;
          Back
        &lt;/p&gt;
      &lt;/nuxt-link&gt;
      &lt;h1 class="display-3 text-center"&gt;
        {{ text }}
      &lt;/h1&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
    export default {
      props: {
        back: {
          type: Boolean,
          default: false,
        },
        text: {
          type: String,
          default: 'Page'
        }
      },
  
      methods: {
        to() {
          this.$router.go(-1);     &lt;---- evaluates to current page?
        },
      }
    }
  &lt;/script&gt;
  </code></pre>