what is the dynamic way to redirect link hardcoded in knowledge articles

venkata satish
Tera Expert

Hi All,

 

We have some knowledge articles with hardcoded links to old service portal. Now we have got a new portal. Now the requirement is, when we click on the link in knowledge articles it should redirect to new portal without changing links in knowledge articles. Is there any way like page routes for portal?

 

Regards,

Venkata Satish

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Does this only concern links in Knowledge Articles? Or also links to your old portal in Record Producers, Notifications, sharepoint, documents, etc.?

 

If so, maybe this helps:
- 2021-09-27 - Article - Redirect (inactivate) Service Portal, e.g. from /sp to /esc

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Riya Verma
Kilo Sage
Kilo Sage

Hi @venkata satish  ,

 

Hope you are doing great.

 

To achieve this, we can utilize page routes for the portal. Page routes allow us to define custom URLs that can redirect to specific pages within the portal:

  1. Access the Portal Configuration module.
  2. Locate the portal where you want to apply the page routes and open its configuration & Look for the "Page Routes" section within the portal configuration.
  3. Add a new page route by specifying the following parameters:
    • Name: Choose a descriptive name for the page route.
    • URL Match Pattern: Define the URL pattern to match the old service portal links. This pattern should capture the URLs of the knowledge articles that need redirection.
    • Redirect to Page: Specify the page within the new portal where you want the users to be redirected.
  4. Save the changes to the portal configuration.
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

venkata satish
Tera Expert

It is not working for me. Can you provide me some screen shots if possible.