Skip to content

Node.js based forum software built for the modern web

closes #3692

barisusakli902f529d53f9
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js
index 893a2cc9f6..2ba5fb05d1 100644
--- a/public/src/client/topic/events.js
+++ b/public/src/client/topic/events.js
@@ -99,7 +99,8 @@ define('forum/topic/events', [
}
var editedPostEl = components.get('post/content', data.post.pid),
editorEl = $('[data-pid="' + data.post.pid + '"] [component="post/editor"]'),
- topicTitle = components.get('topic/title');
+ topicTitle = components.get('topic/title'),
+ breadCrumb = components.get('breadcrumb/current');
if (topicTitle.length && data.topic.title) {
var newUrl = 'topic/' + data.topic.slug + (window.location.search ? window.location.search : '');
@@ -108,6 +109,9 @@ define('forum/topic/events', [
topicTitle.fadeOut(250, function() {
topicTitle.html(data.topic.title).fadeIn(250);
});
+ breadCrumb.fadeOut(250, function() {
+ breadCrumb.html(data.topic.title).fadeIn(250);
+ });
}
editedPostEl.fadeOut(250, function() {
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index 7632d26c5d..406e4c8af7 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -134,8 +134,7 @@ topicsController.get = function(req, res, callback) {
url: nconf.get('relative_path') + '/category/' + topicData.category.slug
},
{
- text: topicData.title,
- url: nconf.get('relative_path') + '/topic/' + topicData.slug
+ text: topicData.title
}
];