Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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

Amitoj Wadhera
Kilo Sage

Hi @MichaelCreatura ,

 

I also faced the similar issue and then I tried to double encode the URL. It solved my issue, you can give it a try too!

 

Double-encoded URL:

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

 

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

Thanks, @Amitoj Wadhera - looks like that is nearly there but now the URL is just stuck on loading and doesn't actually load the target page. 

MichaelCreatura_0-1716537237335.png

Not sure if you came across that?

 

Thanks, 

Hello @Amitoj Wadhera - wondering if you had any advice on how I might fix this? Thanks. 

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