fix(location): correct directions deep links
The routing modal shipped broken deep links: snapp.ir/route and tapsi.ir/route paths don't exist (404), and balad used the wrong path and params. Keep only apps with verified destination deep links and fix their formats: - Remove Snapp and Tapsi (no valid web destination route). - Balad: balad.ir/location?latitude=&longitude= (was /map?lat=&lng=). - Google Maps and Waze kept (already correct). - Guard data.map destructuring against null. - Dashboard turn detail: use maps/dir directions URL instead of a plain q= pin to match the مسیریابی label. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -109,7 +109,7 @@ function DetailLg({ appointmentData, loading }) {
|
||||
onClick={() => {
|
||||
const map = appointmentData?.address?.map;
|
||||
if (map?.latitude && map?.longitude) {
|
||||
window.open(`https://www.google.com/maps?q=${map.latitude},${map.longitude}`, '_blank');
|
||||
window.open(`https://www.google.com/maps/dir/?api=1&destination=${map.latitude},${map.longitude}`, '_blank');
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -99,7 +99,7 @@ function DetailSm({ appointmentData, loading }) {
|
||||
onClick={() => {
|
||||
const map = appointmentData?.address?.map;
|
||||
if (map?.latitude && map?.longitude) {
|
||||
window.open(`https://www.google.com/maps?q=${map.latitude},${map.longitude}`, '_blank');
|
||||
window.open(`https://www.google.com/maps/dir/?api=1&destination=${map.latitude},${map.longitude}`, '_blank');
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user