How to add the current URL of Service Portal in DEV, TEST and PROD instances?

Byron Plant
Tera Contributor

Hi everyone!

I recently created a new Icon Link in our Service Portal. This Icon Link once click will redirect user to a KB Article in the Service Portal as well.

I just copied the Permalink of the KB Article and paste it on the HREF/URL field (See screenshot below. Kindly zoom in to the photo so you can see it properly)

find_real_file.png
The problem is since I created this all in DEV the Permalink was also from dev as well. So when we moved the update set to TEST, the ICON LINK redirected me to the service portal of DEV Instance which is incorrect. 

Can someone teach me how to fix this?

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi,

In order to make it independent of instance, just use URL like below:

/sp?id=kb_article_view&sys_kb_id=53e0c9b1474321009db4b5b08b9a71fd

Just make sure to replace the sys id here which you want and "sp" with your Portal suffix.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

15 REPLIES 15

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Try by giving the relative URL, remove the domain name from that field.

 

EG, Full URL is https://<instance name>.service-now.com/nav_to.do?uri=%2Fincident.do%3Fsys_id%3D280bb0124f20220099f1b3728110c728

So in the field just put

/nav_to.do?uri=%2Fincident.do%3Fsys_id%3D280bb0124f20220099f1b3728110c728

 

-Anurag

-Anurag

Thank you so much Anurag! It's working now. Have a great day!

Hey Mate, 

You have marked your own answer as correct? did the help provided here was not correct?

-Anurag

-Anurag

Sushma R1
Tera Expert

Do not mention the instance uri, just mention whatever is post ?id=, it should work

 

find_real_file.png