From 75b5b27f78d974b2be5728a0aeb6730da91f4f95 Mon Sep 17 00:00:00 2001
From: Jeff Atwood <jatwood@codinghorror.com>
Date: Mon, 17 Nov 2014 16:40:18 -0800
Subject: [PATCH] we don't need this /popular redirect any more

---
 app/controllers/list_controller.rb | 8 +-------
 config/routes.rb                   | 3 ---
 2 files changed, 1 insertion(+), 10 deletions(-)

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"