Can we change the browser tab title on the Service Portal for a single catalog item

Madhura5
Tera Contributor

Hi All,

Can we change the browser tab title on the Service Portal for a single catalog item. Currently it is displayed as 'Service Catalog - IT Services' for all catalog items.

find_real_file.png

I want to modify it to 'Service Catalog - HR Services' only for one HR catalog item. 

Thanks,

Madhura

 

1 ACCEPTED SOLUTION

Here are the steps you can follow.

1. Create a new widget <item_change_tab_title> and add below code in the client controller section.         

       function ($scope,  $document) {

              $document[0].title = <your desired page title>;

       }

2. create a new field on your catalog item of macro type and attach your widget <item_change_tab_title>.

Regards,

Mandeep

View solution in original post

7 REPLIES 7

Hi Mandeep,

I tried your solution in the SC catalog item widget but it is updating the browser tab for all the service catalog items. Can we modify it only for a single catalog item? 

Here are the steps you can follow.

1. Create a new widget <item_change_tab_title> and add below code in the client controller section.         

       function ($scope,  $document) {

              $document[0].title = <your desired page title>;

       }

2. create a new field on your catalog item of macro type and attach your widget <item_change_tab_title>.

Regards,

Mandeep

Hi Mandeepkaran,

Thanks a lot for helping with this. The browser tab title is updating correctly now