old_contents: # -*- coding: utf-8 -*-
  from odoo import http
  from odoo.http import request
  
  from odoo.addons.website_sale.controllers.main import website_sale as controller
  
  
  class WebsiteSale(controller):
  
      @http.route()
      def shop(self, page=0, category=None, search='', **post):
          request.context['search_tags'] = search
          return super(WebsiteSale, self).shop(page, category, search, **post)
  
new_contents: # -*- coding: utf-8 -*-
  from odoo import http
  from odoo.http import request
  
  from odoo.addons.website_sale.controllers.main import WebsiteSale as controller
  
  
  class WebsiteSale(controller):
  
      @http.route()
      def shop(self, page=0, category=None, search='', **post):
          request.context['search_tags'] = search
          return super(WebsiteSale, self).shop(page, category, search, **post)
  
subject: fix name of website_sale controller