Fixing broken collections
What to do when collections are deleted or renamed in Shopify.
How TreeNav handles collection changes
Handle changes (automatic)
When you change a collection's URL handle in Shopify:
- TreeNav automatically updates all trees containing that collection
- No action required from you
- Changes sync within seconds via webhooks
Collection deletions (manual fix required)
When you delete a collection in Shopify:
- The node remains in your tree but is marked as deleted
- The tree dashboard shows a health warning
- You need to manually remove or replace the node
Checking tree health
Dashboard indicators
On the TreeNav dashboard, each tree shows its health status:
| Status | Meaning |
|---|---|
| Healthy | All collections exist |
| Warning | One or more collections deleted |
Viewing details
- Open the affected tree
- Deleted nodes appear with a visual indicator
- The node label shows but links are broken
Fixing deleted collections
Option 1: Remove the node
If you no longer need the category:
- Open the tree editor
- Find the deleted node (marked with warning)
- Click the node's menu (…)
- Select Delete
- Save the tree
Option 2: Replace with another collection
If you want to keep the category but link to a different collection:
- Delete the broken node
- Click Add collections (or + on parent)
- Select the replacement collection
- Drag to correct position if needed
- Save the tree
Option 3: Re-create the collection
If the deletion was a mistake:
- Re-create the collection in Shopify with the same handle
- TreeNav will automatically detect it
- The node will become active again
Preventing issues
Before deleting collections
- Check if the collection is used in TreeNav
- Update your trees first
- Then delete from Shopify
Archiving vs. deleting
Consider making collections unavailable instead of deleting:
- Set collection availability to hidden
- Products remain organized
- TreeNav links still work (but show empty collection)
Bulk fixes
If you have many broken nodes:
- Open each affected tree
- Use the tree editor to remove broken nodes
- Save after each tree
Currently, broken nodes must be fixed individually per tree.
What about children?
When you delete a node that has children:
- Delete node only: Children move up one level (become siblings of deleted node's siblings)
- Delete branch: Node and all descendants are removed
Choose based on whether you want to keep the subcategories.
Metafield sync
After fixing broken collections:
- Save the tree
- TreeNav automatically syncs to metafields
- Your storefront shows the updated tree immediately
Next steps
- Create your first tree for tree editing basics
- Multiple trees if managing several trees