Permalink
Browse files

Added an exception for the Twitter url handling when we've got a quer…

…y string
  • Loading branch information...
1 parent 2446618 commit 1723e5eeed58ad41f82581ced3ba8fe0ad830cd1 kschwen committed Feb 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.shareify.js
View
2 jquery.shareify.js
@@ -7,7 +7,7 @@ shareifyHandlers = {
handlers: {},
set: function(k, f) {
var l = k.length;
- if(k.charAt(l-1) != '/'){k=k+'/';}
+ if(k.charAt(l-1) != '/' && k.indexOf('?') == -1){k=k+'/';}
if(k.indexOf('http://') !== 0) { k='http://'+k; }
shareifyHandlers.twitter.handlers[k] = f;
},

0 comments on commit 1723e5e

Please sign in to comment.