Redirect from non-www to www for odoo instance of container

I try to access with taefik to an instance of odoo container, but the site and the websocket of the site for livechat have that label:

- traefik.enable=true
      - traefik.http.routers.par_odoo.rule=Host(`domain.com`) || Host(`www.domain.com`)
      - traefik.http.routers.par_odoo.service=par_odoo
      - traefik.http.routers.par_odoo.entrypoints=websecure
      - traefik.http.routers.par_odoo.tls.certresolver=le
      - traefik.http.services.par_odoo.loadbalancer.server.port=8069

      # WebSocket
      - traefik.http.routers.par_odoo-ws.rule=Host(`domain.com`) || Host(`www.domain.com`) && PathPrefix(`/websocket`)
      - traefik.http.routers.par_odoo-ws.service=par_odoo-ws
      - traefik.http.routers.par_odoo-ws.entrypoints=websecure
      - traefik.http.routers.par_odoo-ws.tls.certresolver=le
      - traefik.http.services.par_odoo-ws.loadbalancer.server.port=8072

this lable is conifgure for port 8069 and for port 8072. When try to access to service by domain.com traefik redirect to websocket 8072 instead of 8069.

there is a way to solve this? the lables are written into container docker compose file.

Fix the logic:

.rule=( Host(`domain.com`) || Host(`www.domain.com`) ) && PathPrefix(`/websocket`)`