We have loaded data for the related products using bulk import functionality in our Magento admin panel.
But the urls of the products are redirecting us to the category listing page instead of the product detail page.
If we manually add a product from admin, the related products URL works fine.
Should we run any commands for it? Tried with following lines
php bin/magento ca:fl php bin/magento indexer:reindex