diff --git a/app/views/forum_posts/_forum_post.html.erb b/app/views/forum_posts/_forum_post.html.erb
index fe0899d74..5aa59276d 100644
--- a/app/views/forum_posts/_forum_post.html.erb
+++ b/app/views/forum_posts/_forum_post.html.erb
@@ -37,8 +37,11 @@
<%= link_to "Edit", edit_forum_post_path(forum_post.id) %>
<% end %>
<% end %>
- <%= link_to "Parent", forum_topic_path(forum_post.topic, :page => forum_post.forum_topic_page, :anchor => "forum_post_#{forum_post.id}") %>
- <%= link_to "Permalink", forum_post_path(forum_post) %>
+ <% if params[:controller] == "forum_posts" %>
+ <%= link_to "Parent", forum_topic_path(forum_post.topic, :page => forum_post.forum_topic_page, :anchor => "forum_post_#{forum_post.id}") %>
+ <% else %>
+ <%= link_to "Permalink", forum_post_path(forum_post) %>
+ <% end %>