This problem could relate to any site, but I just happen to be operating a Magento eCommerce shopping cart.
I recently scraped my site using Screaming Frog and noticed that a lot of pages are being indexed twice, such as:
mydomain.tld/contact and mydomain.tld/contact/
Since the same canonical url of is listed mydomain.tld/contact/ is listed at both the mydomain.tld/contact/ and mydomain.tld/contact url, why is it being indexed?
I notice that not every page is indexed twice but some pages, categories and products are but I can't put my finger on why.
I have run online test and confirmed by canonical urls are working.