- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 12:57 PM
Hello, I am looking to change in the knowledge base, the article_view that it has by default when opening an article for a custom one
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 12:32 PM
Hello community, this problem is not common according to what I investigated, for this reason here is the solution that I used, in case someone finds it useful
var link=item.link;
link=link.replace("Article_View_default", "id_new_article_view");
item.link=link;
I put this code in the client script, in the function where the 'Item' object is called, I replace the old id_view (kb_article_view) with the new id_view

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 11:59 PM
Hi
You can use Page route option, check below. Don't forgot to mark my answer as correct if that helps.
https://docs.servicenow.com/en-US/bundle/sandiego-employee-service-management/page/product/human-resources/task/enable-page-route-hr.html
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 12:32 PM
Hello community, this problem is not common according to what I investigated, for this reason here is the solution that I used, in case someone finds it useful
var link=item.link;
link=link.replace("Article_View_default", "id_new_article_view");
item.link=link;
I put this code in the client script, in the function where the 'Item' object is called, I replace the old id_view (kb_article_view) with the new id_view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2023 12:39 AM
Hi @Mauricio Guzman Could you please help me understand where is this client script? Is this a new client script you created or existing one?