- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2024 06:51 AM
Hi Everyone,
Recently i have encountered with scenario where i need to change the URL Suffix from x to y. Now issue is if users have bookmarked the kb articles which are referring to "x" URL suffix then how can i route users to "y" URL Suffix portal for the same kb article as soon as they click on the same bookmark again.
I need to change the redirection to new portal which has "Y" URL Suffix.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2024 02:27 AM
I had fixed this issue with below code:
var currentURL = window.location.href;
var newURL = currentURL.replace("x", "y");
window.location.href = newURL;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2024 07:08 AM
Maybe this article can help: https://www.servicenow.com/community/now-platform-blog/6-ways-to-set-up-your-service-portal-for-redi...
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2024 12:52 AM
Hi Vijay,
Check below link that may help you to achieve the requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2024 02:27 AM
I had fixed this issue with below code:
var currentURL = window.location.href;
var newURL = currentURL.replace("x", "y");
window.location.href = newURL;