Skip to content

Commit

Permalink
Fix URL in no token error message
Browse files Browse the repository at this point in the history
  • Loading branch information
521337 authored Sep 14, 2024
1 parent 7428fd4 commit a49c192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ func InferSiteURL(apiURL string) string {
apiURL = defaultBaseURL
}
if apiURL == "https://api.exercism.io/v1" {
return "https://exercism.io"
return "https://exercism.org"
}
re := regexp.MustCompile("^(https?://[^/]*).*")
return re.ReplaceAllString(apiURL, "$1")
}

// SettingsURL provides a link to where the user can find their API token.
func SettingsURL(apiURL string) string {
return fmt.Sprintf("%s%s", InferSiteURL(apiURL), "/my/settings")
return fmt.Sprintf("%s%s", InferSiteURL(apiURL), "/settings/api_cli")
}

0 comments on commit a49c192

Please sign in to comment.