[wp-trac] [WordPress Trac] #60211: [BUG] Custom Links in Menus with #targets FAIL TO WORK (just scroll to target)

WordPress Trac noreply at wordpress.org
Tue Jan 9 04:39:19 UTC 2024


#60211: [BUG] Custom Links in Menus with #targets FAIL TO WORK (just scroll to
target)
--------------------------+-----------------------------
 Reporter:  dbareis       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  6.4.2
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Here is an example of a custom link in a menu:


 {{{
 /search-plants?category%5B%5D=Bird+Attracting#ShowMatchingPlants
 }}}

 Lets say I'm on the page:

 {{{
 /search-plants?category%5B%5D=Popular+%28home%29#ShowMatchingPlants
 }}}

 If I click the "Bird Attracting" link, it will not go to the page, it will
 ignore all parameters and simply scroll the current ("popular") page to
 the hash target "#ShowMatchingPlants".

 If I click on the same menu item on any other page it will work.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60211>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list