38degrees / darjeelink

Link shortener gem
MIT License
0 stars 0 forks source link

Short Link Search with UTMs is order dependant #4

Open jkhulme opened 4 years ago

jkhulme commented 4 years ago

campaigner shortens a url to https://speakout.38degrees.org.uk/surveys/1412?utm_source=email&utm_medium=blast&utm_campaign=1_6_2018_nhs&bucket=email-blast-1_6_2018_nhs

campaigner is then trying to search for that url, so visits the short link and searches for the expanded link - which has come out as https://speakout.38degrees.org.uk/surveys/1412?bucket=email-blast-1_6_2018_nhs&utm_campaign=1_6_2018_nhs&utm_medium=blast&utm_source=email

It's reordered the UTMs and the search won't find it.

jkhulme commented 4 years ago

Just strip the params when searching?