fixes #1811
This commit is contained in:
@@ -35,7 +35,7 @@ class ForumPostsController < ApplicationController
|
||||
def show
|
||||
@forum_post = ForumPost.find(params[:id])
|
||||
if request.format == "text/html" && @forum_post.id == @forum_post.topic.original_post.id
|
||||
redirect_to(forum_topic_path(@forum_post.topic))
|
||||
redirect_to(forum_topic_path(@forum_post.topic, :page => params[:page]))
|
||||
else
|
||||
respond_with(@forum_post)
|
||||
end
|
||||
|
||||
@@ -273,7 +273,7 @@ Danbooru::Application.routes.draw do
|
||||
|
||||
match "/forum" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
||||
match "/forum/index" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
||||
match "/forum/show/:id" => redirect("/forum_posts/%{id}")
|
||||
match "/forum/show/:id" => redirect {|params, req| "/forum_posts/#{req.params[:id]}?page=#{req.params[:page]}"}
|
||||
match "/forum/search" => redirect("/forum_posts/search")
|
||||
match "/forum/new" => redirect("/forum_posts/new")
|
||||
match "/forum/edit/:id" => redirect("/forum_posts/%{id}/edit")
|
||||
|
||||
Reference in New Issue
Block a user