UI Action - SOW; remove the %2F in URL.

Pablo Sanz
Tera Guru

Hi All,

 

I am working on the SOW, I need to redirect the user to a specific Incident in the "Details" tab, when trying to place the following parameters in the URL: "/params/selected-tab-index/1" I get the following characters in the URL: "%2Fparams%2Fselected-tab-index%2F1" is there any way to set the URL correctly?

 

Thanks in advance.

 

1 ACCEPTED SOLUTION

Its_Azar
Tera Guru

Hi @Pablo Sanz 

I think you can encode the URL parameters properly. The "%2F" characters represent the forward slash ("/") in URL encoding.

Instead of directly including the forward slash in the URL parameter, you should encode it as "%2F". However, if you want to include the forward slash without encoding, you can use a backslash ("\") as an escape character before each forward slash.

 

 

like this below
/params\selected-tab-index\1

 

If this helps kindly accept the answer thanks much.

Best regards,
Azar

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India

View solution in original post

7 REPLIES 7

Its_Azar
Tera Guru

Hi @Pablo Sanz 

I think you can encode the URL parameters properly. The "%2F" characters represent the forward slash ("/") in URL encoding.

Instead of directly including the forward slash in the URL parameter, you should encode it as "%2F". However, if you want to include the forward slash without encoding, you can use a backslash ("\") as an escape character before each forward slash.

 

 

like this below
/params\selected-tab-index\1

 

If this helps kindly accept the answer thanks much.

Best regards,
Azar

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India

Hi @Its_Azar,

 

We have a similar situation, we have a URL that contains "%2F" however, when we add this to an External Link in ServiceNow, ServiceNow replaces the "%2F" with a "/" which causes the URL not to work. How can we stop ServiceNow altering the URL?


For reference the full URL before being amended is:

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

 

Thanks in advance! 

Running into the same issue when putting an url containing 2F% into a URL table field. The value is automatically converted 2F% to /.