diff --git a/app/controllers/artists_controller.rb b/app/controllers/artists_controller.rb index 2b0c3ef04..932e63ecd 100644 --- a/app/controllers/artists_controller.rb +++ b/app/controllers/artists_controller.rb @@ -15,15 +15,7 @@ class ArtistsController < ApplicationController end def banned - @artists = Artist.where("is_banned = ?", true).order("name") - respond_with(@artists) do |format| - format.xml do - render :xml => @artists.to_xml(:include => [:urls], :root => "artists") - end - format.json do - render :json => @artists.to_json(:include => [:urls]) - end - end + redirect_to artists_path(search: { is_banned: "true", order: "updated_at" }) end def ban diff --git a/app/views/artists/_secondary_links.html.erb b/app/views/artists/_secondary_links.html.erb index ae820fa79..1882447d0 100644 --- a/app/views/artists/_secondary_links.html.erb +++ b/app/views/artists/_secondary_links.html.erb @@ -1,7 +1,7 @@ <% content_for(:secondary_links) do %> <%= quick_search_form_for(:any_name_or_url_matches, artists_path, "artists", autocomplete: "artist") %> <%= subnav_link_to "Listing", artists_path %> - <%= subnav_link_to "Banned", banned_artists_path %> + <%= subnav_link_to "Banned", artists_path(search: { is_banned: "true", order: "updated_at" }) %> <% if CurrentUser.is_member? %> <%= subnav_link_to "New", new_artist_path %> <% end %>