diff --git a/chrome/content/zotero/preferences/preferences_advanced.js b/chrome/content/zotero/preferences/preferences_advanced.js index c430312efd..315a69bb48 100644 --- a/chrome/content/zotero/preferences/preferences_advanced.js +++ b/chrome/content/zotero/preferences/preferences_advanced.js @@ -623,6 +623,8 @@ Zotero_Preferences.Attachment_Base_Directory = { let storedPath = attachment.attachmentPath; if (storedPath.startsWith(Zotero.Attachments.BASE_PATH_PLACEHOLDER)) { relPath = storedPath.substr(Zotero.Attachments.BASE_PATH_PLACEHOLDER.length); + // Use platform-specific slashes, which PathUtils.joinRelative() requires below + relPath = Zotero.Attachments.fixPathSlashes(relPath); } } catch (e) {