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

 var c = this;

This is available on Client Script of custom widget. Does this need to be removed?

 

Is this what you mean?

function() {
/* widget controller */
var c = this;
c.url = "?id=ar_kb_category"
}

 

- Thank you.

Yes sai.You can try it and let me know.

 

Thanks,
Sumanth

No Luck Sumanth.

- Thank you.

Can you paste your custom widget code here

Thanks,
Sumanth

Dylan Mann1
Giga Guru

Hi Sai!

You can accomplish this pretty easily with a Page Route Map record. Navigate to Service Portal > Page Route Maps and create a new record.

Add your portal to the list, set your Route from to kb_category and your Route to to ar_kb_category. 

Now, whenever a user goes to the kb_category page it will auto-redirect them to the page you want. In the url it will still say kb_category but it will be the correct page. 

Let me know if this helps!

Dylan