Skip to content
Browse files

fix resolivePath in case of a url with query params.

  • Loading branch information...
1 parent a15dd67 commit bf2257bec1b97a48c1ea8daf5a5593551df9e03c @swdyh committed Aug 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 data/autopagerize.user.js
View
2 data/autopagerize.user.js
@@ -621,7 +621,7 @@ function resolvePath(path, base) {
return path
}
else if (path.match(/^\?/)) {
- return base + path
+ return base.replace(/\?.+$/, '') + path
}
else if (path.match(/^[^\/]/)) {
return base.replace(/[^/]+$/, '') + path

0 comments on commit bf2257b

Please sign in to comment.
Something went wrong with that request. Please try again.