Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Query String Not Added To URL #2

Open
greensleestak opened this issue Mar 17, 2016 · 1 comment
Open

Query String Not Added To URL #2

greensleestak opened this issue Mar 17, 2016 · 1 comment

Comments

@greensleestak
Copy link

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
Copy link

  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.'=';
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants