For some reason our Magento 2.3.5 store redirects the product url on the category list page, that we load using the default code
<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>, to the product with a double slash sign after the domain.
So the url on click become;
https://www.domain.com//url-to-product-page and then Magento redirects it to a page with 1 slash like:
Is there a way to remove this double slash from the url by default?