From 810cdeed3610a2a4774de6332835b23fb9c8637e Mon Sep 17 00:00:00 2001 From: Vladimir Tolstikov Date: Thu, 16 Jul 2020 00:04:11 +0400 Subject: [PATCH] YandexWeather: fix issue with wrong URL which leads to random incorrect location detection and wrong weather display (#344) --- MTMR/Widgets/YandexWeatherBarItem.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MTMR/Widgets/YandexWeatherBarItem.swift b/MTMR/Widgets/YandexWeatherBarItem.swift index ebdc8aa..58abef1 100644 --- a/MTMR/Widgets/YandexWeatherBarItem.swift +++ b/MTMR/Widgets/YandexWeatherBarItem.swift @@ -91,7 +91,7 @@ class YandexWeatherBarItem: CustomButtonTouchBarItem, CLLocationManagerDelegate func getWeatherUrl() -> String { if location != nil { - return "https://yandex.ru/pogoda/?lat=\(location.coordinate.latitude)&lon=\(location.coordinate.longitude)?lang=ru" + return "https://yandex.ru/pogoda/?lat=\(location.coordinate.latitude)&lon=\(location.coordinate.longitude)&lang=ru" } else { return "https://yandex.ru/pogoda/?lang=ru" // Yandex will try to determine your location by default }