How to create widget for service portal and detects the url accordingly

samarballav
Tera Contributor

Hi Everyone,

can anyone help regarding - How to create a widget in service portal for routing different pages as per ticket type of the URL. 

It should auto detect URL and rout the pages accordingly.  I have newly created 4 pages are there - incident, complaint, request and approval ticket type. 

Can anyone suggest for this?

2 REPLIES 2

_Gaurav
Kilo Sage

Hi @samarballav 
Yes, you can route the users to the different pages according to the URL.
You can use the getParameter() method to get the URL and check whether the URL contains what. Incident, complaint, request, or approval, and based on that just modify the URL accordingly.

Please hit helpful if the answer resolves your query
Thanks!

For more clarification needed please add the snippets for better understanding.

nataliya_b
Tera Guru

maybe Page route maps (under Portal) could be helpful