I am using Magento 2.2.4, I am having too many Disabled/OutofStock products which are useless.
Now the problem I am simply replacing all Disabled/OutofStock products with New Products. I can successfully change everything in every disable product and make it New Product Besides Url Key. When I simply remove everything from Url Key field and Click save than new Url Key Generates successfully as per new product name but when I try to open that product in the browser, it shows 404 page and that product is still showing with old product's URL key. After that I have to go Marketing-->Url Rewrites and change the URL key manually and than the new product's URL key works fine But when ever I change anything in the new product for example Price, Categories etc than the old product's url key reverts back and the new product shows 404 page on new product's url key and only show the page on old product's url key.
I tried everything I able to found on the internet but failed, unfortunately.
Please guide if anyone has the solution for my above issue. I never faced this issue with Magento 1, This seems very weird.
Update: I just found that this issue is coming with the products only imported from Magento 1 and the products created with Magento 2 are working fine with Url Key.
FYI: we imported products from Magento 1 to Magento 2 with UB Data Migration Lite extension
does any one have any idea on this issue?