Test your web site navigation and link architecture to verify all canonical pages are easily obtainable. You ought to always internally link on to the canonical URL exactly where attainable. The JS redirect sounds like some a messy scenario, but to reply your concern: Should you established a canonical tag https://addons.prestashop.com/ru/seo-natural-search-engine-optimization/31857--rich-snippets-json-ld-opengraph-seo.html