i have the following link:
http://tili-click.startboomservice.com/tracking/adClick?d=IAAAAAAgAAA6X
I need to get the query string with before question mark so the result would be
adClick
this must done on many link with similar pattern. I couldnt find solution like url encode that i use for host and pathname
adClickis NOT part of the query string, it's the last part of the "pathname' something like/\/(.?*)\?/location.pathname.split('/')to get an array of parts, go from there