Bug 1010082 - Fix |mach dxr| URL; f=erikrose
--- a/tools/mach_commands.py
+++ b/tools/mach_commands.py
@@ -32,17 +32,17 @@ class SearchProvider(object):
webbrowser.open_new_tab(uri)
@Command('dxr', category='misc',
description='Search for something in DXR.')
@CommandArgument('term', nargs='+', help='Term(s) to search for.')
def dxr(self, term):
import webbrowser
term = ' '.join(term)
- uri = 'http://dxr.mozilla.org/search?tree=mozilla-central&q=%s' % term
+ uri = 'http://dxr.mozilla.org/mozilla-central/search?q=%s&redirect=true' % term
webbrowser.open_new_tab(uri)
@Command('mdn', category='misc',
description='Search for something on MDN.')
@CommandArgument('term', nargs='+', help='Term(s) to search for.')
def mdn(self, term):
import webbrowser
term = ' '.join(term)