we don't need this /popular redirect any more

This commit is contained in:
Jeff Atwood 2014-11-17 16:40:18 -08:00
parent 0faab6d54a
commit 75b5b27f78
2 changed files with 1 additions and 10 deletions
app/controllers
config

View file

@ -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])

View file

@ -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"