diff --git a/src/ViewModels/ExportCollectionViewModel.cs b/src/ViewModels/ExportCollectionViewModel.cs index 13a708a6..6d5ce664 100644 --- a/src/ViewModels/ExportCollectionViewModel.cs +++ b/src/ViewModels/ExportCollectionViewModel.cs @@ -117,9 +117,15 @@ public async Task ExportToFile() { int indexStartFilename = relativePath.Length - Path.GetFileName(codex.Path)!.Length; zip.AddFile(codex.Path, Path.Combine("Files", relativePath[0..indexStartFilename])); + //keep the relative path, will be used during import to link the included files + codex.Path = relativePath; + } + + //absolute path is user specific, so counts as personal data + if (ContentSelectorVM.RemovePersonalData) + { + codex.Path = relativePath; } - //strip longest common path so relative paths stay, given that full paths will break anyway - codex.Path = relativePath; } ContentSelectorVM.CuratedCollection.SaveCodices();