Version 6.0.0-beta.3
November 23, 2026
Added
- Visibility rules use Craft's condition builder. Logged In, User Group, URL Path and Page Entry Type rules replace the JSON text box. Rules are still stored as
[{type, operator, value}], so templates, the REST API, GraphQL and export files are unchanged; a node refuses to save if the builder is set to "Any" or uses groups. User Group and Page Entry Type rules take several values. (#2) - Custom attributes are a Key / Value table instead of a JSON text box. The attribute allowlist is unchanged. (#2)
- An Icon field with Craft's icon picker. Nodes can show a Font Awesome Free icon as inline SVG (
1em,currentColor), alongside the existing Icon Class field. New menus get it in their node layout; add it to existing menus' layouts in their settings. Pro icons can't be chosen: Craft's licence for them covers the control panel only. Exposed ascraftIconin the REST API and GraphQL, withiconHtmlin GraphQL. (#2) php artisan free-nav:migrate:from-sectionbuilds menus from a Structure section: top-level entries become menus and their descendants nodes, linked through a Link field, a relation field or a third-party link field. (#2)Node::hasIcon(). The presets use it, so a node with only a Craft icon shows its icon.
Changed
- Visibility rules for
userGroupandentryTypeaccept a list of handles:ispasses when any matches,isNotwhen none does. - Export files are format 1.3.0 and carry
craftIcon. Older files import as before.
Fixed
- The presets didn't print custom attributes. Only
node.getLink()added them, so a node's custom attributes never reached the page in a menu rendered with a preset. Every preset now adds them to the node's link or label, leaving out any the preset already writes. Templates of your own can do the same withnode.getCustomAttributesHtml(['class', …]).
Version 6.0.0-beta.2
November 20, 2026
Changed
- The changelog is now shared between the Craft 5 and Craft 6 branches, so each lists both release lines.
Version 6.0.0-beta.1
November 19, 2026
FreeNav 6 is a native Craft 6 plugin: it runs on Laravel, with no dependency on the Yii 2 adapter. Menus, nodes, templates, the REST API and GraphQL carry over; see UPGRADING.md.
Added
- Per-menu field layouts. Each menu's settings have a Node Fields designer. It decides which node settings editors see — URL, new window, CSS classes, URL suffix, icon, badge, custom attributes, visibility rules — and takes custom fields, which also appear on the menu's GraphQL type.
- Add node form: node type, the entry or asset to link (Craft's element picker), URL, parent, site, new window and status. It answers JSON when asked, for scripts.
- Menus can be duplicated, deleted and reordered from FreeNav > Menus, and duplicating copies the field layout.
- The tree opens on a menu's own URL,
free-nav/menus/{id}/build, with the other menus beside it. - Presets are site templates under
_freenav/_presets/, so a site can override one by creatingtemplates/_freenav/_presets/_<name>.twig. - A
freenavglobal in Twig templates, alongsidecraft.freenav. - GraphQL queries take
menuId,linkedElementIdand Craft's element and structure arguments, in addition tomenuHandle,nodeTypeandhasUrl.
Changed
- Requires Craft CMS 6 and PHP 8.5. Upgrading needs FreeNav 5.2.1 first.
- The node builder is Craft's own element index. Each menu's tree is Craft's structure view — drag to reorder and nest, status and delete actions, search — and nodes are edited in Craft's element editor (or its slideout), using the menu's field layout.
- Console commands are Artisan commands:
php artisan free-nav:menus:index,free-nav:menus:resave-nodes,free-nav:menus:clear-cache,free-nav:menus:export,free-nav:menus:importandfree-nav:migrate:from-navigation. The FreeNav 5 names (php craft free-nav/menus/clear-cache…) still work. - The namespace is
JustinHoltWeb\FreeNav(wasjustinholt\freenav), with capitalised sub-namespaces. The upgrade migration rewrites the class names Craft has stored. - FreeNav's events are Laravel events:
MenuSaving,MenuSaved,MenuDeleting,MenuDeleted,ResolvingNodeActive,RegisterNodeTypesandRegisterLinkableElements. - Services are container singletons (
app(Menus::class)).FreeNav::getInstance()->getMenus()and the other getters still work. render(),getLink(),getIconHtml()andgetBadgeHtml()returnIlluminate\Support\HtmlStringinstead ofTwig\Markup.- Plugin settings are on Settings > Plugins > FreeNav; JSON import and the Verbb Navigation migration moved to FreeNav > Import. Export is in the menus list and in each menu's settings.
- The REST API's breadcrumbs give each element as
{id, title, url}rather than the whole element.
Removed
- Category nodes. Craft 6 has no categories. The upgrade migration turns category nodes into entry nodes when Craft's conversion made their category an entry (it keeps element IDs), and otherwise into custom URL nodes pointing where the category was. FreeNav 5 export files and Verbb Navigation data with category links import as entry nodes.
- Commerce product nodes, until Commerce 6 is released.
- The FreeNav 5 node builder (
FreeNavBuilder.js), its slide-out panel, and thefree-nav/nodes/*andfree-nav/menus/*action URLs it used.
Fixed
- Linked nodes' titles follow their element's title, unless an editor gave the node its own. FreeNav 5 compared each node against the element's already-saved new title, so it could take every node for a renamed one and skip the sync.
visibleOnly(true)on a node query now leaves out hidden nodes. It filters the results after the query runs.- The REST API's
get-breadcrumbsnow uses itsuriparameter. - Creating a menu with a handle another menu uses is refused with a message, instead of failing in the database.
Security
- Ships every 5.2.1 fix: the custom attribute allowlist (refused on save, dropped on import, skipped on render, in the REST API and in GraphQL), linked elements the editor must be able to view, and the URL suffix check. On a site whose front end runs a framework that executes other
data-*attributes, treat menu editors as trusted. - The node editor only sets node settings. A crafted save request can't move a node into another menu or change its type or linked element.
- A custom URL may name one environment variable or alias (
$PRIMARY_SITE_URL/about,@web/about). Craft 6 expands${VAR}anywhere in a string, which would have let a URL carry a secret in its query string, so nested variables are refused.
Version 5.3.0
November 23, 2026
Added
- Visibility rules use Craft's condition builder. The node edit panel has a rule builder with Logged In, User Group, URL Path and Page Entry Type rules, in place of typing JSON. Rules are still stored, exported and served by the REST API as the same
[{type, operator, value}]list, and rules of other types are kept when the builder saves. (#2) userGroupandentryTyperules take a list of handles:ispasses when any of them matches,isNotwhen none does. A single handle still works.- Custom attributes are a Key / Value table in the node edit panel, which didn't offer them before. Rows without a key are dropped, and the attribute allowlist still applies. (#2)
- Craft icon picker for nodes. A node can have an icon from Craft's icon picker, printed as an inline SVG sized to the text (
<span class="freenav-icon">). Only the free Font Awesome icons can be chosen, since Craft's Pro icons are licensed for the control panel only. The icon class field still works and is used when no icon is picked. The icon is incraftIconon the node, the REST API, GraphQL (withiconHtmlfor the rendered SVG) and export files (format 1.3.0). (#2) Node::hasIcon(). The presets use it, so they show a picked icon too.php craft free-nav/migrate/from-sectionturns a Structure section that was used as a menu into FreeNav menus: each top-level entry becomes a menu and its descendants its nodes, or--menu=<handle>makes the whole section one menu. Links come from--link-field(Craft's Link field, relation fields and link plugins): entries and assets become element nodes, other links custom URLs, and entries without a link passive nodes. Without--link-fieldeach entry links to itself. It imports through the same checks as a JSON import. (#2)
Fixed
- The presets didn't print custom attributes. Only
node.getLink()added them, so a node's custom attributes never reached the page in a menu rendered with a preset. Every preset now adds them to the node's link or label, leaving out any the preset already writes. Templates of your own can do the same withnode.getCustomAttributesHtml(['class', …]). - The node edit panel's Open in new window switch was not saved.
- A node that fails to save now says why in the edit panel, instead of “Couldn't save node.”
Version 5.2.2
November 20, 2026
Changed
- The changelog is now shared between the Craft 5 and Craft 6 branches, so each lists both release lines.
Version 5.2.1
November 19, 2026
Security
- Custom attributes could carry script onto the front end. A node's custom attributes were written onto its link unchecked, so anyone who could edit a menu, or a menu file imported from elsewhere, could add an event handler such as
onmouseover, ahreforstyleoverride, a front-end framework directive that runs code (x-init,hx-get,v-html,ng-click…), or an array value that expanded into further attributes. Custom attribute names are now an allowlist —data-*(except attributes that front-end frameworks run as code, such as htmx'sdata-hx-*and Datastar'sdata-on-*,data-textanddata-show),aria-*, and plain attributes liketitle,rel,id,lang,roleanditemprop— and values must be text. Anything else is refused when a node is saved, dropped from imports (control panel, console and Verbb Navigation), and skipped when a menu renders, which also covers menus saved before this release. Values are escaped as always; on a site whose front end runs a framework that executes otherdata-*attributes, treat menu editors as trusted. - Editors could link to elements they can't see. Adding a node accepted any element id, so a menu editor could link an entry, asset or product from a section they have no access to and copy its title into the menu, and the node builder's element picker showed the title of any id it was given. Both now require the editor to be able to view the element.
- A URL suffix could turn a custom link into a
javascript:link. The custom URL was checked on its own, but the link is the URL plus its suffix, so a relative URL such asjavawith a suffix ofscript:…passed. The full link is now checked after the suffix is added, which also covers menus saved before this release, and a suffix must start with#,?,&or/.
Version 5.2.0
October 9, 2026
Added
- Menu import and export from the console.
php craft free-nav/menus/export <handle> --file=…writes the same JSON the control panel's "Export JSON" downloads (to stdout without--file), andphp craft free-nav/menus/import --file=…reads it back — creating the menu, or with--replaceswapping an existing menu's nodes for the file's. Seed menus in deploy scripts and move them between environments without the control panel. Replacing nodes is content, so it works whereallowAdminChangesis off; creating a menu still needs it. - Exports now include each node's visibility rules and data.
Changed
- Imports are all-or-nothing. Every node is checked before anything is written — custom URLs through the node editor's own rule, plus the menu's node and level limits — and a file that fails changes nothing. The control panel import used to skip nodes that wouldn't save and carry on.
- The control panel import reports links to entries, categories, assets or products that don't exist in this environment instead of silently dropping them.
Fixed
- Exports of nested menus put every child under every parent. A menu with two parents that each had children exported all the second-level nodes under each top-level node, so an import duplicated them. Each node now exports under its own parent.
- An import only looks up a linked element of the class its node type links to; the class named in the file is no longer used to query.
Version 5.1.5
October 1, 2026
Security
- Every control panel action now checks permissions. None did before, so any signed-in user — a front-end member included — could delete menus, edit or delete nodes, import menus or change the plugin settings by posting to the action URLs. Each action now needs a CP request, Access FreeNav, and the permission the README documents for it; changes to menu definitions also need
allowAdminChanges, and plugin settings are admin-only. - A custom URL can no longer run script or reveal a secret.
javascript:and other non-link schemes are refused when a node is saved and render as no link if already stored, and an environment variable or alias has to resolve to anhttp(s)address —$CRAFT_SECURITY_KEYused to be resolved and printed into every page's menu and the REST API. - The REST API applies node visibility rules, so a members-only link isn't returned to an anonymous caller.
Fixed
- Cached menus were served to everyone as the first visitor saw them. The cache key was the render options alone, so with caching on (the default) a menu rendered for a logged-in user — members-only links included — went to anonymous visitors, and the active item was whichever page warmed the cache. Menus are now cached per page and per visitor type, and pages with a query string are rendered fresh.
- Per-menu permissions can be granted on their own. They were nested under the all-menus permissions, and Craft discards a nested permission whose parent isn't granted — so "edit nodes in one menu" was impossible without "edit nodes everywhere". Names are unchanged; re-save a user's or group's permissions to pick up any that were dropped.
- The REST API listed every node at the top level and again under its parent; it now returns the tree once.
- The builder hides the add, edit, delete and export controls a user can't use, and someone who can only edit nodes goes straight to the builder from the menu listing.
Version 5.1.4
August 26, 2026
Fixed
- A caller-supplied
idoption produced a corrupted DOM id. Twig's??binds tighter than~, sooptions.id ?? 'freenav-' ~ menu.handleparsed as(options.id ?? 'freenav-') ~ menu.handle— passing{ id: 'main-nav' }renderedmain-navprimary. Fixed in all five navigation presets.
Version 5.1.3
August 18, 2026
Fixed
- Fixed the menu listing reporting "0 nodes" for menus that have nodes. The count ran
craft.freenav.nodes(handle).count()with the element query's defaults, which meant enabled nodes on the request's current site — so a menu whose nodes live on another site counted nothing, and disabled nodes never counted anywhere. It now counts what the builder lists: every node in the menu, disabled ones included, on the site the "Nodes" link goes to. - The listing's "Nodes" and "Build" links now carry the site the count was taken on, so the page they open matches the number next to them.
- Fixed the GitHub URLs in
composer.jsonand the README, which pointed atcraft-free-navand 404'd. The support links render in the Craft Plugin Store listing.
Added
Nodes::getNodeCount()— a menu's node count for one site, disabled nodes included.
Version 5.1.2
August 13, 2026
Fixed
- Fixed the add/edit node panel closing when you dismissed a Craft element selector opened from inside it. The panel hand-rolled its own stacking and dismissal: its overlay sat above Craft's modal shade and swallowed the click, and its Escape handler was bound to the document, so both fired for interactions that belonged to the modal.
- Fixed Craft's element selector rendering behind the panel, which covered the modal's Select button. Panels now sit on Craft's z-index for modals and slideouts and order themselves by position in
<body>, so a modal opened from a panel stacks above it. - Panels now register as Garnish UI layers, so Escape closes the topmost thing — the element selector first, then the panel — the way the rest of the control panel behaves.
Version 5.1.1
August 13, 2026
Fixed
- Fixed the node builder always operating on the primary site, whatever the site selector said. Craft doesn't apply
?site=to the current site on control panel requests —Cp::requestedSite()does — so on a menu that isn't enabled for the primary site every save failed with "Attempting to save an element in an unsupported site", and menus whose nodes live on another site showed up empty. - The builder now redirects to a site the menu is actually enabled for, and shows a site selector when a menu is enabled for more than one.
- Fixed
propagationMethoddoing nothing. It was stored, validated, exposed in the CP, exported and migrated, butNode::getSupportedSites()never read it, so nodes propagated to every enabled site no matter the setting. All four methods (none,siteGroup,language,all) now apply. See Changed below. - Fixed management operations silently doing nothing for menus whose nodes live outside the current site: JSON export wrote an empty node list,
resave-nodesand the console menu listing reported 0 nodes, the max-nodes limit went unenforced, and deleting a menu left its nodes behind as orphans. - Fixed node title syncing following the request's site instead of the saved element's, so only one site's nodes picked up a retitled element.
- Adding a node to a site its menu isn't enabled for now fails with a message naming the menu and site, instead of an uncaught exception.
Changed
- Menus set to a propagation method other than "all" will stop propagating new saves to sites the method excludes. Existing rows are left as they are — nothing is deleted — so a menu that had been propagating everywhere keeps the nodes it already has.
Nodes::getNodesByMenuId()andNodes::getParentOptions()take an optional$siteId.
Added
Nodes::findNodesInMenu()— every node in a menu, once each, across all sites. Use it for management operations; rendering stays scoped to the current site.Menu::getEnabledSiteIds()andMenu::isEnabledForSite().
Version 5.1.0
August 13, 2026
Fixed
- Fixed nested menus rendering flat through
craft.freenav.tree(). Node hierarchy lives in the menu's structure, but the tree builder grouped nodes by aparentIdcolumn that nothing ever wrote, so every node came back as a root. Trees are now built from the structure'slevel. - Fixed
Nodes::addNodes()silently flattening menus on multi-site installs. The parent node was looked up against the current site only, so a parent living on another site resolved tonulland the child was appended to the root instead. Parent lookups now search all sites and prefer the new node's site. - Fixed
node.urlin Twig and GraphQL returning the raw custom URL — empty for element-linked nodes — instead of the resolved one. Theurlproperty shadowedgetUrl(); it is nowcustomUrl, leavinggetUrl()as the only accessor. See Changed below. - Fixed duplicated menus losing their nesting:
Menus::duplicateMenu()copied nodes but never added them to the new menu's structure, so the copy came out flat (and invisible to structure-ordered queries). - Fixed nodes whose parent is hidden (disabled or failing a visibility rule) being promoted to the top level when rendering. They are now dropped along with their parent.
- Fixed reordering a node — in the builder or the element index — leaving a stale cached menu on the front end.
- Fixed the CP builder failing to find nodes that don't exist on the current CP site.
Nodes::moveNode()no longer throws when the requested parent or sibling can't be resolved; the node falls back to the menu root and a warning is logged.
Changed
- Breaking:
Node::$urlis nowNode::$customUrl, and thefreenav_nodes.urlcolumn is nowcustomUrl. Templates should callnode.getUrl()(they always should have —node.urlreturned the wrong value for element-linked nodes). GraphQL'surlfield is unchanged and now resolves correctly. Menu exports emitcustomUrland are stamped"freeNav": "1.1.0"; imports still accept the oldurlkey. - Breaking: the unused
freenav_nodes.parentIdcolumn has been dropped, along withNode::$parentId, which shadowed Craft's ownElement::getParentId().node.parentId,node.getParent(), andnode.getChildren()now all read from the menu's structure. - Node queries now join structure data even when the query isn't scoped to a single menu, so
level,lft, andrgtare populated on anyNode::find()result.
Added
Nodes::findNodeInMenu(),Nodes::placeNode(), andNodes::moveNode()— one place that resolves and positions nodes within a menu's structure.NodeHelper::buildParentMap()— node ID => parent ID map derived from structure order.
Version 5.0.2
July 19, 2026
Fixed
- Fixed the element node types (Entry, Category, Asset, Product) being impossible to create in the node builder: the "Select Element" field now renders Craft's element picker so you can choose which element the node links to. Previously the field row appeared but its container stayed empty, and the selected element was never sent to the server. (#reported)
Added
nodes/element-select-htmlcontroller action that renders the element selector for a given linkable node type (used by the builder UI).
Version 5.0.1
July 19, 2026
Fixed
- Fixed the element index columns for nodes: the
Node TypeandNew Windowcolumns now render their styled/custom HTML again (the Craft 3/4tableAttributeHtml()hook was renamed toattributeHtml()in Craft 5, so the custom rendering was silently ignored). - Corrected the return type of
Node::getLinkedElement()and its backing property toElementInterface, matching what Craft's element lookup returns.
Dev
- Added static analysis (PHPStan level 5, clean), code-style enforcement (ECS with Craft's rule set), and a PHPUnit unit-test suite for the plugin's enums and visibility rules.
- Removed unused imports and redundant code flagged by the new tooling.
Version 5.0.0
February 15, 2026
Added
- Initial release
- Full-featured navigation menu builder for Craft CMS 5
- "Menus" terminology for clear naming
- Drag-and-drop node builder in the Control Panel
- Support for entry, category, asset, product, custom URL, passive, and site node types
- Conditional visibility rules (user group, logged-in state, URL segments, entry type)
- Built-in per-menu cache with automatic invalidation via tagged dependencies
- Icon class and badge text fields on nodes
- 6 template render presets: default, dropdown, sidebar, breadcrumb, footer, mega menu
- JSON import/export of full menu structures
- Built-in ARIA accessibility attributes (aria-current, aria-expanded, aria-haspopup, role)
- REST API endpoints for headless/decoupled architectures
- GraphQL schema with per-menu types and scoped permissions
- Mega menu column layout support
- Breadcrumb generation from URL segments with element resolution
- Multi-site support with configurable propagation methods
- Project Config support for menu definitions
- Granular user permissions (manage menus, edit nodes, delete nodes)
- MenuField field type for selecting menus in entries
- Element syncing (title/URL updates when linked elements change)
- Console commands for resaving nodes and clearing caches
- Full English translation file