Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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
Mega Sage

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,
Azar
Serivenow Rising Star
Developer @ KPMG.

View solution in original post

7 REPLIES 7

Anurag Tripathi
Mega Patron

This is the URL encoding, in the URL special characters are encoded. 

%2f is the encoded value for /

See the list here ->HTML URL Encoding Reference (w3schools.com)

 

this is encoded and decoded by itself, you dont need do do anything additional.

-Anurag

Thank you for your reply, unfortunately when I set these characters, it does not send me correctly to the record, I get the following message:

PabloSanz_0-1709910406394.png


So I wanted to see if it was possible to remove them.

if you use the original url, does it take you to the right place?

-Anurag

Yes it does.