Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#7110 closed defect (bug) (fixed)

bp_nav_menu() parent menu items have invalid URLs

Reported by: johnjamesjacoby Owned by: boonebgorges
Milestone: 2.6 Priority: normal
Severity: major Version:
Component: Navigation Keywords:
Cc:

Description

When calling bp_nav_menu() the parent menu items only include the slug, so you end up with:

http://activity

I have a hunch this is related to r10745, #6534, and #4624, and bp_get_nav_menu_items(), but I ran out of time to troubleshoot further.

Change History (3)

#1 @boonebgorges
3 years ago

  • Keywords needs-patch removed
  • Owner changed from imath to boonebgorges
  • Status changed from new to assigned

Thanks for the ticket.

The problem was indeed introduced in [10745], with a mistyped variable name in bp_get_nav_menu_items().

#2 @boonebgorges
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 10874:

Use correct 'link' for top-level items in bp_get_nav_menu_items().

The incorrect variable name was used when the new nav system was introduced
in [10745]. See #6534.

Fixes #7110.

#3 @ShresthaRaaz
3 years ago

  • Priority changed from high to normal

Hi,

@boonebgorges @johnjamesjacoby

I have use BuddyPress version 2.7.2 at WordPress 4.6.1.

In bp-core-template.php some link bugs line no: 3581 while calling bp_nav_menu().

It's correct while using $menu->link = $nav_menu->link;

So can you please suggest me correct code on this section.

Sorry for bad english :)

Best Regards
Raaz

Last edited 3 years ago by ShresthaRaaz (previous) (diff)
Note: See TracTickets for help on using tickets.