diff --git a/viewer/JFJochViewerWindow.cpp b/viewer/JFJochViewerWindow.cpp index 555a8c6aa..746bdfeb8 100644 --- a/viewer/JFJochViewerWindow.cpp +++ b/viewer/JFJochViewerWindow.cpp @@ -716,8 +716,11 @@ JFJochViewerWindow::JFJochViewerWindow(QWidget *parent, bool dbus, const QString menuBar->AddViewToggle(toolBarDisplay->backgroundSliderAction()); toolBarDisplay->showBackgroundSlider(settings.value("backgroundSlider", false).toBool()); - if (!file.isEmpty()) - LoadFile(file, 0, 1, false); + // A broker URL opens following the collection (image -1), as the URL dialog does; a file opens at its first image. + if (!file.isEmpty()) { + const bool http = file.startsWith("http://") || file.startsWith("https://"); + LoadFile(file, http ? -1 : 0, 1, false); + } } JFJochViewerWindow::~JFJochViewerWindow() {