Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 107

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
09/11/13 09:48 PM (12 years ago)

Custom URL screen converting my links!

Hi guys, When using the Custom URL screen, it's converting my link from: http://www.nextbus.com/webkit/predsForStop.jsp?a=edinboro&r=shuttle&d=loop&s=edwa&standalone#_predictions TO: http://www.nextbus.com/webkit/predsForStop.jsp?a=edinboro&r=shuttle&d=loop&s=edwa&standalone%23_predictions Which is confusing the app and breaking the webpage (ignore that both links are broken anyways, the point was to show the change in the link). I just need the custom URL to leave the link alone and let it go through with the # rather then converting it to %23. Any ways to do this? Any help would be appreciated! David https://buzztouchmods.com/market
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
09/11/13 09:52 PM (12 years ago)
I have this same problems when I am creating URL Redirects. It must be the way that strings convert the #. Here is a StackOverflow Article that you may want to read: http://stackoverflow.com/questions/11587744/why-uri-encoded-anchors-cause-404-and-how-to-deal-with-it-in-js Jake
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
09/11/13 10:07 PM (12 years ago)
Jake, I did not even have to open your link. You gave me an idea in your first sentence. I accessed a link shortener and made the link shortened, now the app seems to parse the first link fine :) All works great! Thanks friend! David https://buzztouchmods.com/market
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/12/13 01:45 AM (12 years ago)
Jake beet me to it. # and _ and all sorts of other crazy chars do strange things in URL's. Escaping them is common and does work. But, it's best to get in the habit of not using anything funky (space, non alpha-numeric, etc) in URL's consumed in iOS or Android. This can't be avoided sometimes :-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.