Fix new dtext shortlinks redirecting to nonexistent pages.
Fix the following dtext shortlinks redirecting to nonexistent pages: * flag #1 * appeal #1 * mod action #1 * bur #1
This commit is contained in:
@@ -5,4 +5,11 @@ class ModActionsController < ApplicationController
|
||||
@mod_actions = ModAction.search(search_params).paginate(params[:page], :limit => params[:limit])
|
||||
respond_with(@mod_actions)
|
||||
end
|
||||
|
||||
def show
|
||||
@mod_action = ModAction.find(params[:id])
|
||||
respond_with(@mod_action) do |fmt|
|
||||
fmt.html { redirect_to mod_actions_path(search: { id: @mod_action.id }) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user