How to create widget for service portal and detects the url accordingly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 03:38 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 05:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 06:32 AM
maybe Page route maps (under Portal) could be helpful