Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to set the page rerouting in portal

User177031
Kilo Guru

Hi All,

I am new for portal development. I need your help in changing the landing pages for search in custom portal page.

When I open the article from home page (screenshot 1), it is opening in ar_kb_article custom page (screenshot 2).

But when I click on the breadcrumbs (screenshot 3) it is routing to kb_category page (screenshot 3). I want all the search results to be routed to ar_kb_category custom page

@Dylan Mann can you please help me with the modifications.

- Thank you.. 

9 REPLIES 9

Lansford Hazel
Giga Expert

Hi,

You will have to go to the "Page Route maps" module. There you can reconfigure which page is used when accessing a specific page via the ID in the URL.

 

Sumanth16
Kilo Patron

Hi Sai ,

 

You need to define URL in custom widget code as

c.url = "?id=ar_kb_category" page

 

If it fix your issue please mark it as helpful (or) correct.

 

Thanks,

Sumanth

Hi Sumanth,

Does this need to be added in Client script of the custom widget?

- Thank you.

Hi Sai ,

 

Yes , you need to add in client script of the widget.

 

Thanks,

Sumanth