Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

279
Visualizações
Get the redirect URL of Shortened URL

I want to get the redirect URL of this link, https://goo.gl/maps/7jNqZtPa5Cjf333k7

Since Google URL Shortner API Service is no longer available Is there any way to get the redirect URL without redirecting to it? When the link, https://goo.gl/maps/7jNqZtPa5Cjf333k7 is clicked it redirects to,

https://www.google.com/maps?q=Kandanawatta&ftid=0x3ae2523ff96d8abf:0x4a6d8d4b68830686&hl=en-US&gl=us&entry=gps&g_ep=CAIYAA%3D%3D&shorturl=1

My question is: How to get the redirecting URL using JavaScript without redirecting to the page? Thanks.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If you're using fetch, the url property on the response will contain the final url. Link here.

To quote from the docs:

The url read-only property of the Response interface contains the URL of the response. The value of the url property will be the final URL obtained after any redirects.

The response also has a redirected property which indicates if a redirect occurred.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda