function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sreelakshmi AsokanSreelakshmi Asokan 

url redirect from utility

I have a custom label which has a url, there is a utility item, when i click on the utility, it should get redirected to the link in custom label. can I do this directly , or should i write lightning component for this. 
Please help
Lexi KansLexi Kans
It is possible to achieve this without writing a Lightning component by using a Navigation Mixin in a JavaScript controller. Here are the steps to follow:
Create a custom Lightning component, such as a button or a link, and add it to the Salesforce utility bar.
In the JavaScript controller for the component, import the Navigation Mixin by adding the following code at the top:        (https://www.scrapmetalpricer.com/)
import { NavigationMixin } from 'lightning/navigation';
Sreelakshmi AsokanSreelakshmi Asokan
Hi Lexi,
Thanks for replying:)
The url is already written inside a custom label as I mentioned, how should I implement it inorder for this custom link to open directly when user click on respective utility.