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:
@@ -15,7 +15,9 @@ class BulkUpdateRequestsController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
respond_with(@bulk_update_request)
|
||||
respond_with(@bulk_update_request) do |fmt|
|
||||
fmt.html { redirect_to bulk_update_requests_path(search: { id: @bulk_update_request.id }) }
|
||||
end
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -24,7 +24,9 @@ class PostAppealsController < ApplicationController
|
||||
|
||||
def show
|
||||
@post_appeal = PostAppeal.find(params[:id])
|
||||
respond_with(@post_appeal)
|
||||
respond_with(@post_appeal) do |fmt|
|
||||
fmt.html { redirect_to post_appeals_path(search: { id: @post_appeal.id }) }
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -24,7 +24,9 @@ class PostFlagsController < ApplicationController
|
||||
|
||||
def show
|
||||
@post_flag = PostFlag.find(params[:id])
|
||||
respond_with(@post_flag)
|
||||
respond_with(@post_flag) do |fmt|
|
||||
fmt.html { redirect_to post_flags_path(search: { id: @post_flag.id }) }
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user