Merged in fix/SW-2485-hotel-directions-name (pull request #2641)
fix(SW-2485): add name and address to hotel directions * fix(SW-2485): add name and address to hotel directions * fix(SW-2485): use name and address instead of coordinates Approved-by: Matilda Landström
This commit is contained in:
@@ -44,7 +44,9 @@ export default function Contact({ hotel }: ContactProps) {
|
||||
})}
|
||||
</Body>
|
||||
<Link
|
||||
href={`https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`}
|
||||
href={`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(
|
||||
`${hotel.name}, ${hotel.address.streetAddress}, ${hotel.address.zipCode} ${hotel.address.city}`
|
||||
)}`}
|
||||
>
|
||||
<span className={styles.link}>
|
||||
{intl.formatMessage({
|
||||
|
||||
Reference in New Issue
Block a user