The go-back-to-list block allows the user to return to the list.

GoBackToListGoBackToList

Configuration

  1. Import the vtex.list app to your theme's peer dependencies in the manifest.json file as in the following example:
  "peerDependencies": {
    "vtex.list": "3.x"
  }
  1. Add the go-back-to-list block to other theme block inside a search context, such as the store.search. For example:
  "search-result-layout.desktop":{
    "children": [
      flex-layout.row
    ]
  },

  "flex-layout.row": {
    "children": [
      "flex-layout.col#searchinfo",
      "flex-layout.col#search-product",
+     "go-back-to-list",
    ]
  }

Did this page help you?