diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 5c7548b07..8cb13c9d6 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -134,13 +134,7 @@ class ListController < ApplicationController render 'list', formats: [:rss] end - - def popular_redirect - # We've renamed popular to latest. Use a redirect until we're sure we can - # safely remove this. - redirect_to latest_path, :status => 301 - end - + def top(options=nil) options ||= {} period = ListController.best_period_for(current_user.try(:previous_visit_at), options[:category]) diff --git a/config/routes.rb b/config/routes.rb index bca049780..f33712d4b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -322,9 +322,6 @@ Discourse::Application.routes.draw do get "/badges/:id(/:slug)" => "badges#show" resources :user_badges, only: [:index, :create, :destroy] - # We've renamed popular to latest. If people access it we want a permanent redirect. - get "popular" => "list#popular_redirect" - resources :categories, :except => :show post "category/uploads" => "categories#upload" post "category/:category_id/move" => "categories#move"