Opened 3 years ago

Closed 3 years ago

#2115 closed Bug (fixed)

piwik.js: configTrackerUrl cannot contain a "?" for GET request method

Reported by: fil Owned by:
Priority: low Milestone: Piwik 1.2
Component: Core Keywords:
Cc: Sensitive: no

Description

if the configTrackerUrl contains a "?" line 1008 in piwik.js should append a "&" instead of another "?"

proposed change :

  • image.src = configTrackerUrl + '?' + request;

+ image.src = configTrackerUrl + (configTrackerUrl.match(/?/) ? '&' : '?') + request;

PS: I kindof need this to integrate piwik in a CMS. I can find my way around though.

Change History (2)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Milestone set to 1.2 Piwik 1.2
  • Summary changed from configTrackerUrl cannot contain a "?" to piwik.js: configTrackerUrl cannot contain a "?" for GET request method

comment:2 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [3981]) fixes #2115

Note: See TracTickets for help on using tickets.