FIX: Group posts had the wrong paths in subfolders

This commit is contained in:
Robin Ward 2018-02-14 20:33:13 -05:00
parent 96e5a7da46
commit a03e7cee63
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
import computed from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
@computed('post.url')
postUrl: Discourse.getURL
});

View File

@ -7,7 +7,7 @@
<div class='group-post-info'>
<div class="group-post-topic">
<div class='group-post-title'>
<a href={{post.url}}>{{{post.topic.fancyTitle}}}</a>
<a href={{postUrl}}>{{{post.topic.fancyTitle}}}</a>
</div>
<div class="group-post-category">{{category-link post.category}}</div>
{{#if post.user.name}}