Open rristow opened 8 years ago
Thank you @rristow Independent of any rfc I would say this is a bug. Piwik should not change the URL that was sent via the Tracking API. I think eg in angular this is valid and someone would get an array for selected_colors
in this case
Is there a workaround for this?
Unfortunately I cannot think of any workaround for this right now
@mattab - All forms with lists are actually "misinterpreted" in piwik. Is this bug not serious?
Because campains can be based on survey-forms. And all answers from lists, check-boxes, etc... will be "wrong" in piwik.
Take a look here:
http://stackoverflow.com/questions/724526/how-to-pass-multiple-parameters-in-a-querystring
https://msdn.microsoft.com/en-us/library/ms524784(v=vs.90).aspx
@mattab - May I ask if there some input here?
+1
If you're using javascripts UrlSearchParams object (https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams), it will build an array parameter in this way.
Piwik (php) will not store the complete URI if the query part of the URI has more than one parameter with the same key/name. e.g. http:/mydomain.com?selected_colors=red&selected_colors=blue&par3=1
It's a little bit strange to have parameter with the same name, but there are some systems that use this technic (like plone4) and I didn't find a clear definition about this in the "rfc3986". The main problem is that the link in the reports (like 'Visitor Profile report') will be truncate . e.g. http:/mydomain.com?selected_colors=red&par3=1