Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote-tracking branch 'edgarklein/master' into param-prefix

  • Loading branch information...
commit 32c5199552e04f58a4f4f92c480db50ec13d1889 2 parents 8992f64 + 8dc71c5
@bluesmoon authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 boomerang.js
View
9 boomerang.js
@@ -383,8 +383,15 @@ boomr = {
return this;
}
+ // if there are already url parameters in the beacon url,
+ // change the first parameter prefix for the boomerang url parameters to &
+ var paramPrefix = '?';
+ if(impl.beacon_url.indexOf('?') > -1)
+ paramPrefix = '&';
+
+
// use document.URL instead of location.href because of a safari bug
- url = impl.beacon_url + '?v=' + encodeURIComponent(BOOMR.version) +
+ url = impl.beacon_url + paramPrefix + 'v=' + encodeURIComponent(BOOMR.version) +
'&u=' + encodeURIComponent(d.URL.replace(/#.*/, ''));
for(k in impl.vars) {
Please sign in to comment.
Something went wrong with that request. Please try again.