{"section":"known-issues","requestedLocale":"en","requestedSlug":"banner-not-respecting-the-specificity-of-the-search-level-in-search-pages","locale":"en","slug":"banner-not-respecting-the-specificity-of-the-search-level-in-search-pages","path":"docs/en/known-issues/Intelligent Search/banner-not-respecting-the-specificity-of-the-search-level-in-search-pages.md","branch":"main","content":"## Summary\n\n\n\nIf we have a banner for a department and another one for a category inside this department, the banner query won't respect the specificity of the category tree, we will always get the first one of the API\n\nhttps://github.com/vtex-apps/search/blob/26307cb3e2466a385a6c90565e076600d637509b/react/components/Banner/index.tsx#L75-L79\n\nThis is applied to the entire category tree or specification levels\n\n\n\n## Simulation\n\n\n\n\n- Go to: /admin/search/banners/\n- Create a banner for a department (it should be created first)\n- Create a banner for a category inside this department\n- Go to the category page (client's site)\n- It will match both and will return the first one to be shown\n\n\n\n## Workaround\n\n\nCreate banners for the more specific ones first and after that for the more generic ones. Example: Create banners first for subcategories first, then categories, and then department\n\nOR\n\nCreate all banners that you want to use, and then, deactivate and activate the more generic banners following the rule that I shared previously.\nExample: Deactivate and activate Subcategories, then Categories, and then Departments\n\n it will guarantee that the most generic banners will be displayed as the last one in the API response\n\nhttps://search.biggylabs.com.br/search-api/v1/AccountName/api/split/banner_search/category-1/yourDepartment/category-2/yourCategory"}