diff --git a/public/404.html b/public/404.html
index 4313eac14827c60868c5a0fa99380bde31ba59f2..f7b1499f96e1c65f9e5372208a029e92508d3f5c 100644
--- a/public/404.html
+++ b/public/404.html
@@ -52,7 +52,7 @@
 
 <body>
   <div class="error-container">
-    <img src='./-/error-illustrations/error-404-lg.svg' alt="404 error"/>
+    <img src='/-/error-illustrations/error-404-lg.svg' alt="404 error"/>
     <h1>404: Page not found</h1>
     <p>Make sure the address is correct and the page has not moved.</p>
     <p>Please contact your GitLab administrator if you think this is a mistake.</p>
diff --git a/public/422.html b/public/422.html
index 8713d471fc2df3862e5b7e4878b7bde26a590a14..2cf564b70a4d96ad0e4e097549106f5b9a096097 100644
--- a/public/422.html
+++ b/public/422.html
@@ -52,7 +52,7 @@
 
 <body>
   <div class="error-container">
-    <img src='./-/error-illustrations/error-422-lg.svg' alt="422 error"/>
+    <img src='/-/error-illustrations/error-422-lg.svg' alt="422 error"/>
     <h1>422: The change you requested was rejected</h1>
     <p>Make sure you have access to the thing you tried to change.</p>
     <p>Please contact your GitLab administrator if you think this is a mistake.</p>
diff --git a/public/500.html b/public/500.html
index 93a09b9f649f4c4f3a7046ca30c3caeef1ed8074..f611beafa1c9daab0a4c1f83f3f9ce742731138b 100644
--- a/public/500.html
+++ b/public/500.html
@@ -52,7 +52,7 @@
 
 <body>
   <div class="error-container">
-    <img src='./-/error-illustrations/error-500-lg.svg' alt="500 error"/>
+    <img src='/-/error-illustrations/error-500-lg.svg' alt="500 error"/>
     <h1>500: We're sorry, something went wrong on our end</h1>
     <!-- REQUEST_ID -->
     <p>Try refreshing the page, or going back and attempting the action again.</p>
diff --git a/public/502.html b/public/502.html
index 876e74d0009ed3e64b92c22656898449566d90df..487209693735d2adf593f3788a19e0366f233d52 100644
--- a/public/502.html
+++ b/public/502.html
@@ -63,7 +63,7 @@
 
 <body>
   <div class="error-container">
-    <img src='./-/error-illustrations/error-502-lg.svg' alt="502 error"/>
+    <img src='/-/error-illustrations/error-502-lg.svg' alt="502 error"/>
     <h1>HTTP 502: Waiting for GitLab to boot</h1>
     <p>It can take up to a few minutes for GitLab to boot completely.</p>
     <p>This page will automatically reload every 5 seconds.</p>
diff --git a/public/503.html b/public/503.html
index a3568727efc32567959b2c46a96dd74bc6056848..4c9c56773bea33c927140381a8ac0cbf3daa1533 100644
--- a/public/503.html
+++ b/public/503.html
@@ -52,7 +52,7 @@
 
 <body>
   <div class="error-container">
-    <img src='./-/error-illustrations/error-503-lg.svg' alt="503 error"/>
+    <img src='/-/error-illustrations/error-503-lg.svg' alt="503 error"/>
     <h1>503: We're sorry, GitLab is currently unavailable</h1>
     <p>Try refreshing the page, or going back and attempting the action again.</p>
     <p>Please contact your GitLab administrator if this problem persists.</p>
diff --git a/qa/spec/support/page_error_checker_spec.rb b/qa/spec/support/page_error_checker_spec.rb
index 316dcab4db42b1788e7f9d6dfdf7557a78488e95..979b02de3d9a68397eb55dfe191f02d933b37147 100644
--- a/qa/spec/support/page_error_checker_spec.rb
+++ b/qa/spec/support/page_error_checker_spec.rb
@@ -211,7 +211,7 @@ def self.parse(str)
         "</div>"
     end
 
-    let(:error_500_str) { '<head><title>Something went wrong (500)</title></head><body><img src="./-/error-illustrations/error-500-lg.svg" alt="500 error"><h1>500: We\'re sorry, something went wrong on our end</h1></body>' }
+    let(:error_500_str) { '<head><title>Something went wrong (500)</title></head><body><img src="/-/error-illustrations/error-500-lg.svg" alt="500 error"><h1>500: We\'re sorry, something went wrong on our end</h1></body>' }
     let(:project_name_500_str) { "<head><title>Project</title></head><h1 class=\"home-panel-title gl-mt-3 gl-mb-2\" itemprop=\"name\">qa-test-2022-05-25-12-12-16-d4500c2e79c37289</h1>" }
     let(:backtrace_str) { "<head><title>Error::Backtrace</title></head><body><section class=\"backtrace\">foo</section></body>" }
     let(:no_error_str) { "<head><title>Nothing wrong here</title></head><body>no 404 or 500 or backtrace</body>" }