You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this regex is used to validate the protocol scheme. This means that a protocol like safari-web-extention will become null.
This can result in unexpected behaviour for setCustomUrl, if it is called with a url whose protocol does not conform to this regex. In that case, the url argument gets appended to base url.
To Reproduce
Example for JavaScript tracker, setup the tracker and call:
That setCustomUrl sets the url to its argument independent of protocol scheme.
Additional context
Currently the page_urlscheme is also a Snowplow atomic property, whose current max length is 16, which results in events getting invalidated if their page url has a protocol longer than that.
Describe the bug
Currently this regex is used to validate the protocol scheme. This means that a protocol like
safari-web-extention
will becomenull
.This can result in unexpected behaviour for
setCustomUrl
, if it is called with a url whose protocol does not conform to this regex. In that case, the url argument gets appended to base url.To Reproduce
Example for JavaScript tracker, setup the tracker and call:
Expected behavior
That
setCustomUrl
sets the url to its argument independent of protocol scheme.Additional context
page_urlscheme
is also a Snowplow atomic property, whose current max length is 16, which results in events getting invalidated if their page url has a protocol longer than that.The text was updated successfully, but these errors were encountered: