Log1x / navi

A developer-friendly alternative to the WordPress NavWalker.
https://github.com/Log1x/navi
MIT License
315 stars 30 forks source link

Wrong term slug #58

Closed LucasDemea closed 1 year ago

LucasDemea commented 1 year ago

Hi, thank you for this nice package ! When a menu contains taxonomy terms, the returned slug is not correct :
image

Log1x commented 1 year ago

When Navi gives you a parent/slug by default, it typically represents the menu item its self.

You will need to query the objectId or parentObjectId (if the item is a child) and get the title/slug yourself.