From c117c44a55570c2a84180e7c6f148c01e7f2a90b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 20:45:02 +0000 Subject: [PATCH 1/3] Initial plan From ee7ea9dadbf05f2ccae936ffea45e6d7f63c6ac9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 20:48:27 +0000 Subject: [PATCH 2/3] Fix 404 error on /en/ redirect by adding og:locale and redirect logic Co-authored-by: NetBr3ak <85062086+NetBr3ak@users.noreply.github.com> --- 404.html | 10 ++++++++++ index.html | 2 ++ pl.html | 6 ++++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/404.html b/404.html index dd21270..bd7600b 100644 --- a/404.html +++ b/404.html @@ -22,6 +22,16 @@ rel="stylesheet"> + + + + diff --git a/pl.html b/pl.html index 2eb1f22..1585d87 100644 --- a/pl.html +++ b/pl.html @@ -7,7 +7,7 @@ ForgeGrid: Inteligentny System Monitoringu Produkcji - + @@ -29,10 +29,12 @@ + + - + From 80961e2de2436b58f32cad7cb2fbbffc04e9ae97 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 20:49:58 +0000 Subject: [PATCH 3/3] Refactor redirect logic to use basePath variable Co-authored-by: NetBr3ak <85062086+NetBr3ak@users.noreply.github.com> --- 404.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/404.html b/404.html index bd7600b..7dad7bd 100644 --- a/404.html +++ b/404.html @@ -27,8 +27,9 @@ // Redirect /en/ and /en to the main English page (function() { const path = window.location.pathname; - if (path === '/forge-page/en' || path === '/forge-page/en/') { - window.location.replace('/forge-page/'); + const basePath = '/forge-page/'; + if (path === basePath + 'en' || path === basePath + 'en/') { + window.location.replace(basePath); } })();