Reputation: 96
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?
Upvotes: 1
Views: 70
Reputation: 96
Turns out it was an addon. This was the culprit: https://github.com/hyperfekt/webextension-remove-redirect
Upvotes: 4