I can't use window.location.href on Server but can on Client

Shane18
Kilo Expert

On my Service Portal widget, I can only use window.location.href on the client and not the server, it says "Server JavaScript error "window" is not defined.", how can I retrieve the current URL on the server, or alternatively pass it from the client to the server? Thanks!

5 REPLIES 5

Prakash Pareek
Tera Expert

Hi @Shane18 did you get the answer to this question ... And if want current url in script include of an action assignment like the "add" that could be present inside the related list