Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Get current URL within Service Portal widget

Jerome11
Tera Guru

What is the best way to retrieve the current URL in a Service Portal widget?

1 ACCEPTED SOLUTION

palanikumar
Giga Sage

To retrieve the URL from Client controller you can use the following:

 

window.location.href 
Thank you,
Palani

View solution in original post

3 REPLIES 3

Shane J
Tera Guru

For?

palanikumar
Giga Sage

To retrieve the URL from Client controller you can use the following:

 

window.location.href 
Thank you,
Palani

Monika2
Giga Guru

Hi Jeorme,

You can either use window.location.href or this.location.href to get the URL in client side.

 

Regards,

Monika