[buddypress-trac] [BuddyPress Trac] #6325: Route /me/*/ to /members/<me>/*/
buddypress-trac
noreply at wordpress.org
Tue Aug 11 22:30:42 UTC 2015
#6325: Route /me/*/ to /members/<me>/*/
---------------------------------+-----------------------
Reporter: DJPaul | Owner: DJPaul
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.4
Component: API - Rewrite Rules | Version:
Severity: normal | Resolution:
Keywords: |
---------------------------------+-----------------------
Comment (by DJPaul):
I started looking at this but then realised I really want to duplicate a
lot of the path cleaning code from the top-half of
`bp_core_set_uri_globals` to handle things like subdirectories and stuff,
which is 😢. So I thought about maybe using that function to handle the
redirect which is also 😢 because our associated root page code is all 💀
and it's not the right place to put the code. But! Then I remembered we
already have special code in there to handle the `bp_get_search_slug`
which itself is handled in `bp_core_action_search_site` (bp_init, 7).
What do you think about implementing this ticket using this same general
pattern?
(For novelty value, here is my in-development effort before I thought of
all of the above, and it's real crappy:
https://gist.github.com/paulgibbs/b406efa9ca0ca4e6a3f6 )
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6325#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list