Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9624

Keeping URL params encoded in a bitly link?

$
0
0

I'm having a frustrating problem with bit.ly. In my webapp, I have a URL param that contains a URL-encoded array value. So basically its param=${encodeURIComponent(JSON.stringify(["one","two","three"]))} which is param=%5B%22one%22%2C%22two%22%2C%22three%22%5D

The problem is, when I shorten the URL with bit.ly, the URL it redirects to has that param val unencoded, so its

myWebsite.com?param=["one","two","three'], which breaks my app. Has anyone had experience with this, or does anyone have ideas on how to handle this?


Viewing all articles
Browse latest Browse all 9624

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>