URL Encoding Changing "%2F" to "/"

MichaelCreatura
Tera Guru

We have a URL that we would like to display on our Employee Service Centre, as a Quick Link. 

 

The URL is:

https://[REDACTED].sabacloud.com/Saba/Web_spf/EU2PRD0075/app/shared/calendar;spf-url=common%2Fcalendar%2F%3Fcontext%3Dplan 

As you can see there are two elements of "%2F", before and after "calendar".

 

When this URL is added to an External Link, ServiceNow amends the URL and replaces the "%2F" with a /, which causes the link to break.

https://[REDACTED].sabacloud.com/Saba/Web_spf/EU2PRD0075/app/shared/calendar;spf-url=common/calendar/%3Fcontext%3Dplan

Would it be possible to stop ServiceNow overwriting the "%2F"? 

 

Appreciate any advice! 

 

Michael

1 ACCEPTED SOLUTION

Amitoj Wadhera
Kilo Sage

Hey @MichaelCreatura ,

 

You can try approach 2: By using a URL Shortener

  1. Create a Short URL:

    • Go to a URL shortening service like bit.ly or tinyurl.com.
    • Create a new shortened URL using the problematic URL.
  2. Use the Short URL in ServiceNow:

    • Use the generated short URL as the quick link in your ServiceNow instance.

If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.

 

Thanks,

Amitoj Wadhera

View solution in original post

6 REPLIES 6

Not helpful.

This is an incorrect solution. ServiceNow must not corrupt the original URL, as it's totally fine. Also, exposing a URL to a third-party software is not a good idea.