Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself #9926

Merged
merged 1 commit into from
May 28, 2022

Commits on May 26, 2022

  1. Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself

    There may be sites in the wild that depends on the faulty behaviour of IsDescendant/IsAncestor when comparing to itself, but
    
    * The documentation and common sense says that a thing cannot be descendant or ancestor to itself.
    * The bug introduced in `HasMenuCurrent` comes directly from that confusion.
    
    Fixes gohugoio#9846
    bep committed May 26, 2022
    Configuration menu
    Copy the full SHA
    6a22130 View commit details
    Browse the repository at this point in the history