From ae034a438c50ff3b6f45613e2dca403dc10e4c46 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Wed, 13 Feb 2013 01:05:35 -0800 Subject: [PATCH] scope google search on 404 to domain --- app/views/exceptions/not_found.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb index 3920983140a..5a588039dda 100644 --- a/app/views/exceptions/not_found.html.erb +++ b/app/views/exceptions/not_found.html.erb @@ -1,8 +1,10 @@ +<% local_domain = "#{request.protocol}#{request.host_with_port}" %> +

The page you requested doesn't exist on this discussion forum. Perhaps we can help find it, or another topic like it:

-

Most popular topics

+

Popular topics

<% @popular.each do |t| %> <%= t.title %>
<% end %> @@ -22,7 +24,7 @@

Search for this topic

- +