Don't encode the tracking URL, only the event & args.

This commit is contained in:
Michael Bayne
2018-07-26 08:45:35 -07:00
parent fa696c8999
commit a886bcac14
@@ -453,7 +453,8 @@ public class Application
try {
String suffix = _trackingURLSuffix == null ? "" : _trackingURLSuffix;
String ga = getGATrackingCode();
return _trackingURL == null ? null : new URL(encodePath(_trackingURL + event + suffix + ga));
return _trackingURL == null ? null :
new URL(_trackingURL + encodePath(event + suffix + ga));
} catch (MalformedURLException mue) {
log.warning("Invalid tracking URL", "path", _trackingURL, "event", event, "error", mue);
return null;