{{#if current}} menu-item-current{{/if}} not working

Full code:

    {{#foreach navigation}}
            class="menu-item menu-item-{{slug}}{{#if current}} menu-item-current{{/if}}">
            <a class="menu-item-link"
                href="{{url absolute="true"}}">{{label}}</a>

The class “menu-item-current” is never added. Say for example I’m on the home page, my li element would look like this for link to “Home”

<li class="menu-item menu-item-home">
            <a class="menu-item-link" href="https://mindglowing.art/">Home</a>

The url needs to match completely in “/ghost/#/settings/navigation”, which mine did not.
I fixed it now, works.