FIX: Search was not multisite aware

FIX: Search was not multisite aware

diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb
index 805b1c9..32f2ca7 100644
--- a/app/views/exceptions/not_found.html.erb
+++ b/app/views/exceptions/not_found.html.erb
@@ -17,7 +17,7 @@
     <div class="page-not-found-search">
       <h2><%= t 'page_not_found.search_title' %></h2>
       <p>
-        <form action='/search' id='discourse-search'>
+        <form action='<%= path "/search" %>' id='discourse-search'>
           <input type="text" name="q" value="<%= @slug %>">
           <button class="btn btn-primary"><%= t 'page_not_found.search_button' %></button>
         </form>

GitHub sha: e0d2174e

1 Like