Browse Source

[enh] proper urls

asciimoo 11 years ago
parent
commit
4bf44076d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/wikipedia.py

+ 1 - 1
searx/engines/wikipedia.py

@@ -10,6 +10,6 @@ def response(resp):
     search_results = loads(resp.text)
     results = []
     for res in search_results.get('query', {}).get('search', []):
-        results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res['title'], 'title': res['title']})
+        results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res['title'].replace(' ', '_'), 'title': res['title']})
     return results