New URL redirection on old bookmarked URL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
46m ago
Hello Folks,
I have a catalog item link "A" as bookmark but now i have another new Order guide which has another link "B", now link "A" is decommissioned . How can i redirect user to link "B" when they click on bookmarked link "A" .
Below script i have tried but not working
On load on Catalog A:
function onLoad() {
var newItemSysId = 'fd020a662bd74f50e1ebfc7ffe91bf48';
var newUrl =
'/sp?id=spi_sc_cat_item&sys_id=' + newItemSysId;
top.window.location.replace(newUrl);
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
30m ago
for portal use this
var newItemSysId = 'fd020a662bd74f50e1ebfc7ffe91bf48';
var newUrl =
'/sp?id=spi_sc_cat_item&sys_id=' + newItemSysId;
top.window.open(url,"_self");
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏