const childUrl = categoryChild.url.split("/");
categoryChild.url = category.url + "/" + childUrl.slug;
await categoryChild.save();
})
I am updating parent category of child category, so url of all child category also updated
so my question is Am I doing like this is correct ??
or any better way to update all url of categories which is better than this??
if is necessary to update that then you for seo you need use Redirect 301 to that google use new links. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301
Обсуждают сегодня