Hi,

I enabled the OG search block and used the OG Block visiblity module to display it only in my OG's

When I enter a search term in the OG search form I am redirected back to my site home page?

Any ideas?

CommentFileSizeAuthor
#5 search_in_group.tar_.gz2.98 KBbjhardin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ludo1960’s picture

Using firebug the code is :

<form id="views-exposed-form-og-search-default" method="get" accept-charset="UTF-8" action="/"> ------> when I enter the group name behind the / it works!!!!
<div><div class="views-exposed-form">
  <div class="views-exposed-widgets clear-block">
          <div class="views-exposed-widget">
                        <div class="views-widget">
          <div id="edit-keys-wrapper" class="form-item">
 <input type="text" class="form-text" title="Enter the terms you wish to search for." value="test" size="15" id="edit-keys" name="keys" maxlength="128"/>
</div>
        </div>
      </div>
        <div class="views-exposed-widget">
      <input type="submit" class="form-submit" value="Search group" id="edit-submit"/>
    </div>
  </div>
</div>
</div></form>

moshe weitzman’s picture

Status: Active » Closed (fixed)

you have ignored the notice when creating an issue to reproduce the problem without og helper modules

ludo1960’s picture

OOPs sorry.

I was unaware of any such notice, where is it? Ok so I disabled everything apert from OG and OG views integration. The problem remains, searching from within a group takes me directly back to the home page without any search results. Clearing the Views cache makes no difference. Any thoughts?

ludo1960’s picture

Version: 6.x-2.0-rc1 » 6.x-2.x-dev

Just installed 6.x-2.x-dev (2009-Apr-24) Group Search still takes me back to home page (no search results)

bjhardin’s picture

FileSize
2.98 KB

We had the same problem and sponsored a custom module to fix it. I don't know if this is the best solution, but it works for us. I'd love feedback from other Drupal users and developers.

We have OG version 6.x-1.1 enabled.

khan2ims’s picture

Hi,

I too was having the same problem that when i exposed the filter, the search took me to home page.

Then I did a little of research(ok, it was google search!) and found out that only if we add "page" display, the exposed filter works as search. Now I have a well functioning search.

Imran Khan
Project Manager
New Earth Marketing

GarenCheckley’s picture

khan2ims,

when adding a "page" display, what path did you list? I am having the problem described in this thread, added a page display to the view, but my incorrect path returns errors when searching.

Thanks,
garen

Bernardine’s picture

garen,

I had the same problem and question ... as part of my testing I plugged "search" in as the path and lo and behold it seems to have just worked.

mcpuddin’s picture

Use a path like search/group/%

You need to make sure the % is there in order say you are searching that group

caschbre’s picture

I'm also experiencing the same issue. I've disabled the helper modules and enabled the group search block. I'm using 6.x-2.0.

I tried modifying the og_search view to add a "page" but wasn't able to get it to work with different values in the page path setting.

EDIT: Ok, I think my problem was I had actually cloned og_search to my_og_search and then disabled og_search. Would that cause this issue?

ludo1960’s picture

Tried every path possible, still cant get it to work! Anyone?

marcp’s picture

Version: 6.x-2.x-dev » 6.x-2.1
Status: Closed (fixed) » Closed (duplicate)
cooldeeponline’s picture

#6+#9 is the solutions that works.. thank you both!!!!