Portal Browse Taxonomy widget - Issue: Catalog Link to Order Guide is linking to Catalog Item

HSU
Tera Contributor

Dear all,

anyone use the Portal Browse Taxonomy widget, and also face this issue?

The list of Catalog Items rendered does NOT differentiate between Catalog Item vs Order Guide.
For the Order Guide, the link still points to: https://?????.com/esc?id=sc_cat_item  

Correct it should be pointing to: https://?????.com/esc?id=sc_cat_item_guide  

Any hints where to adjust this behavior of the widget?

HSU_0-1728609134311.png

 

PS: The instance we use is Vancouver


1 ACCEPTED SOLUTION

sam_yan
Giga Guru

We realized this issue the next day after we activated it. It's already a big impact to business. So, I just implemented a quick fix to widget "Portal Browse Taxonomy Content Card"
https://instance.service-now.com/sp_config?id=widget_editor&sys_id=979dcb58c38579506e399a0705013140

sam_yan_0-1728612029231.png

//gs.info(data.content.url);
var url = data.content.url;
if(url!='' && url.indexOf('id=sc_cat_item')!=-1) {
var ind = url.indexOf('sys_id=') + 7;
var sysid = url.substring(ind, ind + 32);
var gro = new GlideRecord('sc_cat_item_guide');
if(gro.get(sysid)) {
data.content.url = url.replace('sc_cat_item', 'sc_cat_item_guide');
}
}

View solution in original post

3 REPLIES 3

Omkar Mone
Mega Sage

Hello,

 

Have you tried updating the option schema for that widget?

HSU
Tera Contributor

Nothing can be found there. 

sam_yan
Giga Guru

We realized this issue the next day after we activated it. It's already a big impact to business. So, I just implemented a quick fix to widget "Portal Browse Taxonomy Content Card"
https://instance.service-now.com/sp_config?id=widget_editor&sys_id=979dcb58c38579506e399a0705013140

sam_yan_0-1728612029231.png

//gs.info(data.content.url);
var url = data.content.url;
if(url!='' && url.indexOf('id=sc_cat_item')!=-1) {
var ind = url.indexOf('sys_id=') + 7;
var sysid = url.substring(ind, ind + 32);
var gro = new GlideRecord('sc_cat_item_guide');
if(gro.get(sysid)) {
data.content.url = url.replace('sc_cat_item', 'sc_cat_item_guide');
}
}