Notification bell icon on portal header redirect to custom page instead of order_status page

Chirag Pathak
Tera Contributor

Hi Community,

There is bell icon on portal header 

ChiragPathak_0-1783340609759.png

When this is selected it opens 

ChiragPathak_1-1783340649974.png


And when any request is selected in this it redirects to Order_status and we need it to redirect to our custom page which is essentially a clone of ticket page. Our header is also a clone of the OOTB ESC header. 

I did try a page route but that still shows the incorrect page id in the URL.  Which widget is this part of or script include or something?

How do I achieve this?

4 REPLIES 4

Tanushree Maiti
Tera Patron

Hi @Chirag Pathak 

 

Check if it helps:

https://www.servicenow.com/community/developer-forum/redirect-to-request-item-instead-of-order-statu...

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Kieran Anson
Kilo Patron

Hi,

The OOTB "url" is defined in each sn_ex_sp_notifs_portal_notification_content_config record. For example, 'Incident commented' defines the url as "/esc?id=ticket&table=incident&sys_id="

 

For your use case, you have two options

 

  1. Modify the "Request completed" portal notification content configuration record to point to your custom page
  2. My preferred option, applies globally, assuming your custom page takes the same parameters, would be a page route map. This applies universally. 

To create a page route map:

  1. Go to sp_page_route_map table
  2. Create a new record
  3. Select your portal for this to apply to
  4. Select the order_status page as the 'route from' value
  5. Select your custom page as the 'route to' value
  6. Mark it as active

Any requests sent to order_status will be auto-redirected to your custom page

Hi @Kieran Anson,

I did try the portal page route but when I tried it it shows order_status in the URL instead of the custom page id.

Page routes intentionally preserve the URL name, however the actual presented page will be your custom page. This isn't a defect