This is a known issue, and while waiting for the Orion team to fix it, you can use this script to fix the error if you are using a user script manager.
// ==UserScript==
// @name Fix URL encoding error
// @version 1.0
// @description Prevent loading incorrect URLs and fix double-encoded search queries on Google
// @author Dong Wei
// @match ://www.google.com/search
// @match ://www.google.com.hk/search
// @match ://www.google.co.uk/search
// @match ://www.google.ca/search
// @match ://www.google.com.au/search
// @match ://www.google.com.sg/search
// @match ://www.google.co.in/search
// @match ://www.google.co.jp/search
// @match ://www.google.de/search
// @match ://www.google.fr/search
// @match ://www.google.com.br/search
// @match ://www.google.ru/search
// @match ://www.google.co.kr/search
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Function to recursively decode a potentially double-encoded string
function decodeUntilNormal(encoded) {
let decoded = encoded;
try {
while (decoded !== decodeURIComponent(decoded)) {
decoded = decodeURIComponent(decoded);
}
} catch (e) {
console.error("Decoding failed:", e);
}
return decoded;
}
// Function to check and fix the URL
function fixUrl() {
const url = new URL(window.location.href);
const queryParam = url.searchParams.get("q"); // Get the search query
if (queryParam) {
const decodedQuery = decodeUntilNormal(queryParam);
if (queryParam !== decodedQuery) {
console.log("Double-encoded query detected, fixing...");
url.searchParams.set("q", decodedQuery); // Fix the search query
// Stop current loading and redirect to the corrected URL
window.stop(); // Stop loading the incorrect page
window.location.replace(url.toString());
}
}
}
// Execute the fix immediately
fixUrl();
})();