drockney / append-qs

Append Query String YOURLS plugin
5 stars 3 forks source link

Query String Not Added To URL #2

Open greensleestak opened 8 years ago

greensleestak commented 8 years ago

I'm trying to use the query string plugin https://github.com/drockney/append-qs to append ?site=blahblah to the end of my tracking link from CPV Lab which I have entered into URL shorten field.

However, nothing is being recorded for site= when I look in my tracking stats.

Is this plugin still working? Why is this info not being appended to the end of the URL I put into the Yourls bar?

branhendricks commented 8 years ago
  1. Make sure you have ? at the end of the long url. If your key will the same all the time, you could put ?site= as part of your long url, and your short url would be followed by ?blahblah (using your example above).
  2. When I reviewed the code, I noticed that the key and value are appended to the long URL, but there was no = in between. I added this code between the parts where key and value are appended to the URL. Still testing it to make sure I didn't break something else while fixing my initial issue.

if ((isset($key) && ($key != '')) && (isset($val) && ($val != ''))) { $appendme = $appendme.'='; }