Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

71
Views
Link to google maps doesn't work in react

i am rendering conditional link by location like this:

  <a
    href={`https://maps.google.com/maps?q=${delivery_branch.latitude},${delivery_branch.longitude}`}
    target={"_blank"}
  >{`${delivery_branch.street}, ${delivery_branch.zip} ${delivery_branch.city}`}</a>

But it doesn't open anything when I try to click on it. When I copy that link a paste it to browser, it works.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Add rel="noopener noreferrer", should work:

<a
    href={`https://maps.google.com/maps?q=${delivery_branch.latitude},${delivery_branch.longitude}`}
    target={"_blank"} rel="noopener noreferrer"
  >{`${delivery_branch.street}, ${delivery_branch.zip} ${delivery_branch.city}`}</a>

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!