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:
evazion
2018-10-25 23:00:43 -05:00
parent a2186c19dc
commit 705217d337
4 changed files with 16 additions and 3 deletions

View File

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