Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no need for base_url

  • Loading branch information...
commit 7fab28d072e0330a4e20ca1f406f5374df82af6a 1 parent 8d263b7
@mislav authored
Showing with 1 addition and 5 deletions.
  1. +0 −4 app.rb
  2. +1 −1  views/opensearch.erb
View
4 app.rb
@@ -89,10 +89,6 @@ def page_title title = nil
@page_title
end
end
-
- def base_url
- @base_url ||= "#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}"
- end
end
require_relative 'lib/auto_last_modified'
View
2  views/opensearch.erb
@@ -4,5 +4,5 @@
<Tags>RFC</Tags>
<InputEncoding>UTF-8</InputEncoding>
<SyndicationRight>open</SyndicationRight>
- <Url type="text/html" template="<%= base_url %>/search?q={searchTerms}"/>
+ <Url type="text/html" template="<%= url('/search') %>?q={searchTerms}"/>
</OpenSearchDescription>
Please sign in to comment.
Something went wrong with that request. Please try again.