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

105
Views
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 answers
Answer question

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 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!