parentId is not respected on import of backup

Author: EjmathewpCreated Jul 10, 2024Updated Sep 22, 2026
Labelsbug

Describe the bug When exporting bookmarks via Linkwarden then importing the backup.json file, sub-collections become collections (i.e. all nested structures are lost). I can see in the original backup.json that the sub-collections have a "parentID" field to denote them as a sub-collection. When I export the bookmarks again after re-importing backup.json the "parentID" field is now null.

To Reproduce Steps to reproduce the behavior:

  1. Export Data from the user settings
  2. Sign in with a new account
  3. Import Linkwarden data from user settings
  4. Sub-collections are now treated as regular collections

Expected behavior Sub-collections persist across backup/restore.

Desktop (please complete the following information):

  • OS: Docker
  • Version 2.5.2

Additional context I am a HW developer, not SW so maybe I'm off base here, but the implicit IDs of collections via the collectionOrder schema seems non-ideal. I would expect each collection to have an identifier within its schema instead of the ID being implicitly defined by the display order.