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

100
Visualizações
Firefox uses URL-encoded part of href as the whole href

I have a html tag with a query parameter containing a URL-encoded URI:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>
    <main>
      <a href="https://google.com/maps?endpoint=https%3A%2F%2Fbing.com%2Fmaps">Click me</a>
    </main>
  </body>
</html>

In Chrome, the anchor tag shows up correctly, as https://google.com/maps?endpoint=https%3A%2F%2Fbing.com%2Fmaps.

However, viewing the anchor tag in Firefox shows https://bing.com/maps. It has discarded the first part of the URL, and used the encoded query param as the href. I would expect it to show the same as in Chrome. Why does this happen? Is this a bug?

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

0

Turns out it was an addon. This was the culprit: https://github.com/hyperfekt/webextension-remove-redirect

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