Knowledge Article - Dynamic URLs for Portals and Mobile

senon
Tera Sage


Hello Expert
There is a URL written in a knowledge article. I am looking for a way to redirect this to suit the portal or mobile.

 

■Problem
The knowledge article has the following URL written as a URL to refer to other knowledge articles:

 

https://<instance_name>.service-now.com/<portal_name>?id=kb_article&sys_id=<sys_id>

 

This was written in this way because I was only using the portal at first.

A problem has arisen when developing mobile from now on.

I want to display knowledge articles natively on mobile, but the above URL will access the web portal on mobile.

 

■What I want to solve
-If the URL is from the portal, what kind of URL should I use to open knowledge or catalog content on the portal, and if the URL is accessed from mobile, what kind of URL should I use to open the content on mobile?

 

-The URL is inserted into many knowledges, and it is difficult to change each one. Is there a way to change or redirect them all at once?

 

I look forward to your ideas.

Best Regard.

 

senon

1 ACCEPTED SOLUTION

senon
Tera Sage

I found a way to make content accessible for portals and mobile devices.

It's by using dynamic links.

we will update the way of attach link as: ?id<table name>&sys_id=<record sys_id>
For catalog: ?id=sc_cat_item&sys_id=<catalog sys_id>
For article: ?id=<kb_knowledge>&sys_id=<KB knowledge sys_id> or ?id=kb_article_view&sysparm_article=<KB_number>

View solution in original post

5 REPLIES 5

Hi @senon 

Yes, that was what I mentioned in my replies. The portal URL itself should load for both mobile or portal and take them to the right place. I mentioned in my previous reply that unfortunately, the only way to correct this is to update the URL to use the portal URL (which is ?id=page...etc.).

 

Your question was asking if there was a way to redirect them all or update them all since there were many.

 

I said unfortunately no, and that you'd need to update them to a portal equivalent to make it work for both mobile and portal.

 

If my reply above helped guide you, please consider also marking that as "Accept Solution" as you can mark more than one as such.

 

Take care! 😀


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!