To create a script so that if we change the URL of the category, item, blog, and news. For items, we have to create a script and update.
Jira code: SQUIP-413
Requirement
We have to create a script to have 301 redirects for the change in the URL of category, item, blog, and news.
Our Solution
For the category, we can follow the same script that we did in the previous mega menu update.
Blogs and News
For Blog and News, since we have no script available for that We have to manually add its 301 redirects.We can easily add that since the number of Blogs and News is very less. So at every time of URL change we have to create a redirect record with a new URL.
Item
We have to create a user event script. In that script whenever the field change occurs it will take that value. It will also create a saved search where we can take the old value. Then it will create a redirect record through the script.