diff options
-rw-r--r-- | lib/bugs.js | 2 | ||||
-rw-r--r-- | lib/docs.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bugs.js b/lib/bugs.js index 6b2a44f21..c63b76b41 100644 --- a/lib/bugs.js +++ b/lib/bugs.js @@ -22,7 +22,7 @@ function bugs (args, cb) { var url = d.bugs && ((typeof d.bugs === "string") ? d.bugs : d.bugs.url) if (!url) { - url = "https://npmjs.org/package/" + d.name + url = "https://www.npmjs.org/package/" + d.name } log.silly("bugs", "url", url) opener(url, { command: npm.config.get("browser") }, cb) diff --git a/lib/docs.js b/lib/docs.js index 9b81724d9..600d393a0 100644 --- a/lib/docs.js +++ b/lib/docs.js @@ -37,7 +37,7 @@ function getDoc (project, cb) { fetchPackageMetadata(project, ".", function (er, d) { if (er) return cb(er) var url = d.homepage - if (! url) url = "https://npmjs.org/package/" + d.name + if (! url) url = "https://www.npmjs.org/package/" + d.name return opener(url, {command: npm.config.get("browser")}, cb) }) } |