what is the dynamic way to redirect link hardcoded in knowledge articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 10:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 06:26 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 09:02 PM - edited 06-23-2023 09:02 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2023 02:34 AM
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:
- Access the Portal Configuration module.
- 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.
- 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.
- Save the changes to the portal configuration.
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 09:18 AM
It is not working for me. Can you provide me some screen shots if possible.