From eca6a0e3cfca77eeda7ddeaabbdb7055e4f61b1f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 31 Aug 2025 14:29:53 +0200 Subject: [PATCH] UX: don't give an error message for photon when searching OSM-urls --- src/Logic/Search/PhotonSearch.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Logic/Search/PhotonSearch.ts b/src/Logic/Search/PhotonSearch.ts index 3f6af41bd..a34ade4b8 100644 --- a/src/Logic/Search/PhotonSearch.ts +++ b/src/Logic/Search/PhotonSearch.ts @@ -125,6 +125,10 @@ export default class PhotonSearch implements GeocodingProvider, ReverseGeocoding if (query.length < 3) { return [] } + if(query.indexOf("https://") >=0){ + // Photon gives a '403 forbidden' when this is part of the search string + return [] + } const limit = this.searchLimit let bbox = "" if (options?.bbox && !this.ignoreBounds) {