Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to modify redirect url when searching esc portal catalog??

jinwoolee
Tera Contributor

1. Copy the original catalog page and proceed with customization (change to original id : sc_cat_item2323, copy : sc_cat_item)
2. The phenomenon of loading to the original url, not the copied page, when accessed after searching the product on the employee portal

 

ex)

 I thought you were referring to the id value of the page when loading the page, but even if you change the id value of the original page to another value and change the id value of the copy to the original value, url is created using the existing value

 

/esc?id=sc_cat_item2323 -> /esc?id=sc_cat_item  not changed !!

7 REPLIES 7

Sarthak Kashyap
Mega Sage

Hi @jinwoolee ,

 

I tried your problem in my PDI and it works for me

 

Please navigate to All> Service Portal> Search > Search Source

SarthakKashyap_0-1763364170994.png

Check the page id of "Catalogs" record and change to your specific page id

SarthakKashyap_1-1763364241900.png

Additionally if this doesn't work open the record and in Data Fetch Script you find a variable called item.page change the specific page id it will work

SarthakKashyap_2-1763364304652.png

 

 

Result

I search for mac and if I open any item

SarthakKashyap_3-1763364365601.png

 

It will navigate me to specific page 

SarthakKashyap_4-1763364395802.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

 

 

jinwoolee
Tera Contributor

Hello, I checked and the page field was empty, so I processed the change and br was already sc_cat_item. But it still doesn't work.

Hi @jinwoolee ,

 

Did you try the 2nd approach that I mention in my comment ? 

 

 

Additionally if this doesn't work open the record and in Data Fetch Script you find a variable called item.page = "sc_cat_item" change the specific page id it will work

SarthakKashyap_0-1763365477091.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

 

Hello, I'm still having problems.