Breadcrumb widget - generating URL dynamically.

Geeky
Kilo Guru

Hi All,

I want to redirect user to a custom page whenever a they click on the breadcrumb link. For example, if you see the image below, its redirect user to sc_category page but I want to change that page to custom_sc_category page which is a clone of sc_category page.

I tried to clone breadcrumb widget but I do not see any code that specifies the page.

I have actually cloned the sc_category page but not sure which part of code to update to redirect the user.

 

 

1 ACCEPTED SOLUTION

Siddhnath Pande
Mega Guru

Hey Geeky,

For that you have to clone the Breadcrumb widget & change a line of code which as follow:

<span><a ng-href="?id={{portal.homepage_dv}}">${Home}</a>

The above code is the OOTB Breadcrumb code line number 3

You have to change this into 

<span><a ng-href="?id=your_page">Previous Page </a>

Here is a link community link where I have explain this in detail you can look into it.

https://community.servicenow.com/community?id=community_question&sys_id=24f90b92db94189023f4a345ca96...

 

If the above code helps then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey

View solution in original post

6 REPLIES 6

Vishwa Prakash
Kilo Expert

Hi Geeky,

thanks for the reply, let me just dig in and see if I can find a solution for this.

 

 

Siddhnath Pande
Mega Guru

Hey Geeky,

For that you have to clone the Breadcrumb widget & change a line of code which as follow:

<span><a ng-href="?id={{portal.homepage_dv}}">${Home}</a>

The above code is the OOTB Breadcrumb code line number 3

You have to change this into 

<span><a ng-href="?id=your_page">Previous Page </a>

Here is a link community link where I have explain this in detail you can look into it.

https://community.servicenow.com/community?id=community_question&sys_id=24f90b92db94189023f4a345ca96...

 

If the above code helps then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey