Silent error when trying to add a link to a Windows folder

I was trying to add a link to a Windows folder, but then nothing happened.
I understand that this is not allowed, but it would be nice to have an error message instead of silently failing.

Steps to reproduce:
1) Create a test item
2) Click on "Add Attachment" -> "Attach Web Link..."
3) Fill:
Link: C:\MyData
Title: Link to folder
4) Press Enter

-> The window "Attach Link to URI" closes, but the link is not added.

The Debug Output shows the error message:
"[JavaScript Error: "Error: Invalid URL 'c:\MyData'" {file: "chrome://zotero/content/xpcom/attachments.js" line: 759}]"

If this is not allowed, is it possible to get an "Invalid URL" message directly in the "Attach Link to URI" window, in the same way as when typing something wrong?

Debug ID D596614184
Zotero 7.1-beta.37+e50787c94 (64-bit)
Sign In or Register to comment.