{"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\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\nThis is applied to the entire category tree or specification levels.\n\n## Simulation\n\n- Go to **Admin > Storefront > 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## Workaround\n\nCreate banners in this order: most specific first, most generic last.\n\nExample order:\n\n1. Subcategory banners\n2. Category banners\n3. Department banners\n\nAlternative: if banners already exist in the wrong order, deactivate and reactivate them in the same order (subcategory, then category, then department). This puts the generic banners last in the API response.\n\n\n```\ncurl --location 'https://{accountName}.vtexcommercestable.com.br/api/intelligent-search/v1/banners/{facets}?query={query}' \\\n```"}