Use GITHUB_DOTCOM_URL so URL deduplication works
This commit is contained in:
parent
28a5b954e7
commit
b185050563
6 changed files with 12 additions and 12 deletions
2
lib/util.js
generated
2
lib/util.js
generated
|
|
@ -173,7 +173,7 @@ function parseGithubUrl(inputUrl) {
|
|||
// If we detect this is trying to be to github.com
|
||||
// then return with a fixed canonical URL.
|
||||
if (url.hostname === "github.com" || url.hostname === "api.github.com") {
|
||||
return "https://github.com/";
|
||||
return exports.GITHUB_DOTCOM_URL;
|
||||
}
|
||||
// Remove the API prefix if it's present
|
||||
if (url.pathname.indexOf("/api/v3") !== -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue