Browse Source

Automatically follow redirects

pull/159/head
Richard Lewis 8 years ago
parent
commit
7cb153d0d0
  1. 1
      src/github.com/matrix-org/go-neb/services/wikipedia/wikipedia.go

1
src/github.com/matrix-org/go-neb/services/wikipedia/wikipedia.go

@ -122,6 +122,7 @@ func (s *Service) text2Wikipedia(query string) (*wikipediaPage, error) {
q.Set("action", "query") // Action - query for articles
q.Set("prop", "extracts") // Return article extracts
q.Set("format", "json")
q.Set("redirects", "")
// q.Set("exintro", "")
q.Set("titles", query) // Text to search for

Loading…
Cancel
Save