diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java b/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java index 300517b9e..7d78abfd2 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java @@ -320,7 +320,7 @@ default URI browseImage(String key) { if (key == null) { throw new IllegalArgumentException("The image key must not be null!"); } - return string2URL(getBaseUrl(), "app/?pKey=", key); + return string2URL(getBaseUrl(), "app/?pKey=", key, "&focus=photo"); } /** diff --git a/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java b/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java index 1cda1a4c7..5c2cc09ca 100644 --- a/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java +++ b/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java @@ -26,7 +26,7 @@ class MapillaryURLTest { @Test void testBrowseImageURL() { - assertEquals(URI.create("https://www.mapillary.com/app/?pKey=1234567890123456789012"), + assertEquals(URI.create("https://www.mapillary.com/app/?pKey=1234567890123456789012&focus=photo"), MapillaryConfig.getUrls().browseImage("1234567890123456789012")); }