Skip to content

Commit

Permalink
fix resolivePath in case of a url with query params.
Browse files Browse the repository at this point in the history
  • Loading branch information
swdyh committed Aug 6, 2011
1 parent ae0f578 commit 135c749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autopagerize.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,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
Expand Down

0 comments on commit 135c749

Please sign in to comment.