[buddypress-trac] [BuddyPress Trac] #6731: search as page/post slug redirects to home
buddypress-trac
noreply at wordpress.org
Thu Nov 12 22:02:46 UTC 2015
#6731: search as page/post slug redirects to home
-------------------------------------------+--------------------
Reporter: modemlooper | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.4.1
Component: Component - Core | Version: 2.4.0
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback |
-------------------------------------------+--------------------
Changes (by boonebgorges):
* keywords: needs-patch => needs-patch reporter-feedback
Comment:
Looking at this more closely, I think [10110] is unrelated. I'm fairly
sure this dates back to [3490]. See #2710. I managed to reproduce on 2.3.x
and 2.2.x, though I'd wager it goes back to 1.5.
The issue is this: BP's directory searches use AJAX. The no-js fallback is
to send requests to `/search/`, at which point
`bp_core_action_search_site()` grabs the request and reroutes it. This
means that it's not possible to have a page called `/search/` on a BP
installation.
FWIW I think this is pretty crummy. There's no reason why we need to steal
a pretty permalink for this purpose. We should just send search requests
to `bp_get_root_domain()`, with `$_POST['bp-is-search'] = 1` or something
like that.
If you can verify that this is not a new problem, we'll fix this for 2.5.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6731#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list