Fetch Redirecting to Root

Viewed 9

I have a page with a sort order option on it. I'm trying to make it so that when you change the sort order, it re-fetches the fetch request and updates the data. Though, when doing so below, it's redirecting me to / root instead of staying on the same page.

watch: {    
  getSortOption(newSortOption) {
    console.log(' Your Saved Sorting = ' + newSortOption)
    this.sortOption = newSortOption
    this.$fetch();
  }
}

Is there something I'm missing here? Surely this references the page?

0 Answers
Related