Closed jfelchner closed 7 years ago
Do all of them have the %20
before the URL? (Or anything similar I need to strip out?)
@kirb no they don't all have that but they could.
Honestly I have no idea how the link opener redirection works. It would be nice if you could just send the whole rover URL to the app and let it decide what to do. Currently the eBay app doesn't support affiliate tagging, but in the future, if it did, then not having link opener break that would be nice.
If sending an entire rover link doesn't work, then I think parsing out the query param is the only option.
Also, here's a more complex example:
In this case the encoded URL itself has eBay query params in it that tell eBay not to use the app.
So I think the steps would be:
mpre
query param_mwBanner
, rmvSB
, ul_noapp
from the query params of that URL (if they exist)BTW, in case it matters to you, for the URL, the 1
s represent a single digit apiece, for the campid
they represent one or more digits. The customid
it is one or more of any character.
Thanks!
eBay's app now opens rover links itself.
eBay has a URL format used specifically for affiliates. It basically has the URL embedded in the query params. Tons of links are formatted like this cuz people want dat $$$$
I'd love if opener could parse out the URL from the query params and send me to the eBay app.
The format is something like:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&pub=&toolid=10001&campid=XXXXXXXXXX&customid=&mpre=%20http%3A%2F%2Febay.com
Notice the
mpre
query param is the URL we actually want. It just needs to be URL decoded.