mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
we don't need this /popular redirect any more
This commit is contained in:
parent
0faab6d54a
commit
75b5b27f78
2 changed files with 1 additions and 10 deletions
|
@ -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])
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue