Handlebars foreach - url magically different than logged

I’ve got a really odd problem. I’m leveraging a foreach in my code to render links from the site navigation. When I use log, it shows the correct URL, but when it’s actually rendered, the URLs just show site root. I must be missing something:

{{#foreach @site.secondary_navigation}}
    {{log url}}

The {{log url}} shows correct in the log output, but all the urls in the rendered HTML just show “/”.

Looks like you can’t get the URLs and use them from pages other than partials/navigation.hbs for some reason. Seems like a very odd restriction.

These attributes can only be used inside the {{#foreach navigation}} loop inside ./partials/navigation.hbs . A navigation loop will not work in other partial templates or theme files.
Ghost Handlebars Theme Helpers: navigation