- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 01:36 PM
Hello everyone
I'm trying to change the redirection of 'Service Catalog' in the breadcrumb.
Currently if we click on Service Catalog I see the page is being redirected to the page 'sc_home'. I'm trying to disable this redirection and would like to redirect it to separate page, onClick.
I have cloned the breadcrumbs widget and changed the below line in the HTML code
<a ng-href="{{item.url}}">{{item.label}}</a>
to
I'm defining the href link directly assuming this is what it is triggering the Service Catalog to 'sc_home' page. However even on my change it doesn't work and still redirect to the home page.
Is there any other place changes to be implemented for a successful redirection?
Thanks
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2018 11:20 AM
I finally figured out by restricting the links in breadcrumbs by adding the below lines in HTML template.
<a ng-if="item.label != 'Service Catalog'" ng-href="{{item.url}}">{{item.label}}</a>
<a ng-if="item.label ==='Service Catalog'" ng-href="?id=sc_category&sys_id=e15706fc0a0a0aa7007fc21e1ab70c2f">{{item.label}}</a>
Kind of hard code to 'Service Catalog' label which redirects to above URL and for rest of the links it works as usual.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2018 09:19 AM
Yes I did that already, but seems it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2018 07:31 AM
Hello,
Have you replaced the instance of the breadcrumb widget on the page with your custom widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2018 07:44 AM
Yes I replaced the widget with my custom one and now for every breadcrumb link it takes me to that same URL/page. Is there anyway we can restrict the redirection only if user clicks on 'Service Catalog' from the breadcrumbs?
Any help appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2018 11:20 AM
I finally figured out by restricting the links in breadcrumbs by adding the below lines in HTML template.
<a ng-if="item.label != 'Service Catalog'" ng-href="{{item.url}}">{{item.label}}</a>
<a ng-if="item.label ==='Service Catalog'" ng-href="?id=sc_category&sys_id=e15706fc0a0a0aa7007fc21e1ab70c2f">{{item.label}}</a>
Kind of hard code to 'Service Catalog' label which redirects to above URL and for rest of the links it works as usual.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 02:47 PM
Hi @Nitin_NOW , were you able to find out how to update that variable?
Regards.