From 7cb153d0d02ce8084cc8a6c88c9f7cae1b471da2 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 21 Feb 2017 23:25:39 +0000 Subject: [PATCH] Automatically follow redirects --- src/github.com/matrix-org/go-neb/services/wikipedia/wikipedia.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/go-neb/services/wikipedia/wikipedia.go b/src/github.com/matrix-org/go-neb/services/wikipedia/wikipedia.go index a599a2e..dfb59e5 100644 --- a/src/github.com/matrix-org/go-neb/services/wikipedia/wikipedia.go +++ b/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