diff --git a/app/controllers/artist_controller.rb b/app/controllers/artist_controller.rb
index 6a7f6f4..1341da7 100644
--- a/app/controllers/artist_controller.rb
+++ b/app/controllers/artist_controller.rb
@@ -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
diff --git a/config/routes.rb b/config/routes.rb
index b5dfaa2..09ff428 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -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
diff --git a/public/opensearch.xml b/public/opensearch.xml
index 391b5b9..f0814c3 100644
--- a/public/opensearch.xml
+++ b/public/opensearch.xml
@@ -3,5 +3,5 @@
BeatHaven
BeatHaven
http://beathaven.org/favicon.ico
-
+