Skip to content

Referrer object tracking

Drew Baker edited this page Apr 25, 2021 · 1 revision

The store contains an object this.$store.state.referrer that is populated by the last from route object that was displayed. This is controlled by the /middleware/referrer.js file. This is useful if you want to display a custom back button on a page.

Also remember that client side Nuxt includes a from value to context that can be useful. Read more here.

Clone this wiki locally