diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 index 6aebe200e5c..19bb1a99f6f 100644 --- a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 @@ -158,7 +158,7 @@ export default class PostCooked { if (asideTopicId) { // If it's the same topic as ours, build the URL from the topic object - if (this.topicId === asideTopicId) { + if (this.attrs.topicId === asideTopicId) { navLink = ``; } else { // Made up slug should be replaced with canonical URL