Skip to content

A platform for community discussion. Free, open, simple.

FIX: Search was not multisite aware

Robin Warde0d2174e75d6
diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb
index 805b1c96b99..32f2ca776d0 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>