Opensearch works again
This commit is contained in:
		
							parent
							
								
									8a188cf6bd
								
							
						
					
					
						commit
						f76dea062c
					
				@ -36,6 +36,10 @@ class ArtistController < ApplicationController
 | 
			
		||||
    )
 | 
			
		||||
  end
 | 
			
		||||
  
 | 
			
		||||
  def search
 | 
			
		||||
    redirect_to "/#/artist/#{params[:q].gsub(/\s/, '+')}"
 | 
			
		||||
  end
 | 
			
		||||
  
 | 
			
		||||
private
 | 
			
		||||
  
 | 
			
		||||
  def queue_loading artist_name, mbid
 | 
			
		||||
 | 
			
		||||
@ -21,4 +21,6 @@ Beathaven::Application.routes.draw do
 | 
			
		||||
  
 | 
			
		||||
  match 'artist/autocomplete' => 'last_fm#autocomplete'
 | 
			
		||||
  match 'artist/(:artist)' => 'artist#data', constraints: { artist: /.*/ }
 | 
			
		||||
  
 | 
			
		||||
  match 'search' => 'artist#search'
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@ -3,5 +3,5 @@
 | 
			
		||||
  <ShortName>BeatHaven</ShortName>
 | 
			
		||||
  <Description>BeatHaven</Description>
 | 
			
		||||
  <Image height="16" width="16" type="image/x-icon">http://beathaven.org/favicon.ico</Image>
 | 
			
		||||
  <Url type="text/html" method="get" template="http://beathaven.org/artist/#/{searchTerms}/"/>
 | 
			
		||||
  <Url type="text/html" method="get" template="http://beathaven.org/search/?q={searchTerms}"/>
 | 
			
		||||
</OpenSearchDescription>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user