diff --git a/CHANGELOG.md b/CHANGELOG.md index ff0db7c6de7..2ba3e778a00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We fixed an issue where exporting "XMP annotated pdf" without selecting an existing document would produce an exception. [#10102](https://github.com/JabRef/jabref/issues/10102) - We fixed an issue where the "Enabled" column in the "Protected terms files" tab in the preferences could not be resized [#10285](https://github.com/JabRef/jabref/issues/10285) - We fixed an issue where after creation of a new library, the new library was not focused. [koppor#592](https://github.com/koppor/jabref/issues/592) +- We fixed an issue where double clicking on an url in the file field would trigger an exception instead of opening the browser [#10480](https://github.com/JabRef/jabref/pull/10480) ### Removed diff --git a/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java b/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java index 5c4b332a029..72a71f211b9 100644 --- a/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java +++ b/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java @@ -150,6 +150,7 @@ private static void openIsbn(String isbn, PreferencesService preferencesService) /** * Open an external file, attempting to use the correct viewer for it. + * If the "file" is an online link, instead open it with the browser * * @param databaseContext The database this file belongs to. * @param link The filename. @@ -160,7 +161,7 @@ public static boolean openExternalFileAnyFormat(final BibDatabaseContext databas String link, final Optional type) throws IOException { if (REMOTE_LINK_PATTERN.matcher(link.toLowerCase(Locale.ROOT)).matches()) { - openExternalFilePlatformIndependent(type, link, filePreferences); + openBrowser(link, filePreferences); return true; } Optional file = FileUtil.find(databaseContext, link, filePreferences);