Skip to content

Commit

Permalink
FIX: Build quote share URL using post number, not post ID (#13622)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Jul 2, 2021
1 parent 7e6a317 commit ddaf2f5
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -250,7 +250,9 @@ export default Component.extend({

@discourseComputed("topic.{id,slug}", "quoteState")
shareUrl(topic, quoteState) {
return getAbsoluteURL(postUrl(topic.slug, topic.id, quoteState.postId));
const postId = quoteState.postId;
const postNumber = topic.postStream.findLoadedPost(postId).post_number;
return getAbsoluteURL(postUrl(topic.slug, topic.id, postNumber));
},

@discourseComputed("topic.details.can_create_post", "composerVisible")
Expand Down

0 comments on commit ddaf2f5

Please sign in to comment.