Is there a way to access full url of a TInyUrl

snowcone
Giga Guru

Is there a way to access full url of a TInyUrl?

We have a script that uses sys_param from url, but the script fails when the param is long and TinyUrl comes to play.

Thank you

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

 

this is how you enable it....so revert to disable? 🙂 Unless of course you need it on purposes for your instance? Then I don't think you can grab it when it's being converted.

 

https://docs.servicenow.com/bundle/jakarta-platform-user-interface/page/use/navigation/task/t_Enable...

 

Seems the be a system property setting.

 

1) Navigate to System Properties > System.
2) Select the Use tiny URLs when a redirect URL becomes too large. This ensures that URLs that are too large for IE (greater than 2083) are not used. Instead, they are converted to a tiny URL to work around the IE issue. (glide.use_tiny_urls property).
3) (Optional) Update the value in the Minimum length of a redirect URL that is turned into a tiny URL (default=1024) (glide.tiny_url_min_length property), if desired.
4) Click Save.

Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

snowcone
Giga Guru

Thanks Allen for the reply. I don't want to revert, so that tinyurl is not used. I think it is a good feature to use.

I want to modify my script to either decode tinyurl or come with another solution.

Thank you

Pooja85
Giga Contributor

Hello snowcone,

I have a similar requirement to access the full url when it is converted to tiny.Did you find a way to do this?Could you help me by sharing that solution 🙂

Thanks!