Skip to content

Commit 08f4ae2

Browse files
author
Niklas Hofmann
committed
fix getNextPage when using pathPrefix
1 parent ca90bf2 commit 08f4ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ var Client = module.exports = function(config) {
575575

576576
function getQueryAndUrl(msg, def, format, config) {
577577
var url = def.url;
578-
if (config.pathPrefix) {
578+
if (config.pathPrefix && url.indexOf(config.pathPrefix) !== 0) {
579579
url = config.pathPrefix + def.url;
580580
}
581581
var ret = {

0 commit comments

Comments
 (0)