Make Google search work on test site (ie. using the results from the original site!)
This commit is contained in:
parent
dd23be6f84
commit
b07ed2ec58
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ Members.prototype.onCodeUpdate = function() {
|
|||
helma.aspects.addBefore(this, 'search_action', function (args, func, site) {
|
||||
if (getProperty('google-search') === 'true') {
|
||||
if (req.data.q && !req.data.q.contains('site:')) {
|
||||
res.redirect(site.href(req.action) + '?q=' + req.data.q + encodeURIComponent(' site:' + site.href()));
|
||||
res.redirect(site.href(req.action) + '?q=' + req.data.q + encodeURIComponent(' site:' + site.href().replace('test.www.', '')));
|
||||
}
|
||||
res.data.title = gettext('Search');
|
||||
res.data.body = site.renderSkinAsString('$Site#googleSearch');
|
||||
|
|
Loading…
Add table
Reference in a new issue