Skip to content

A platform for community discussion. Free, open, simple.

FIX: call `getURL` method explicitly to prevent `this` context override.

Vinoth Kannan60a3110113a1
diff --git a/app/assets/javascripts/discourse/app/components/group-post.js b/app/assets/javascripts/discourse/app/components/group-post.js
index 34c83529ef1..51bb53f0ead 100644
--- a/app/assets/javascripts/discourse/app/components/group-post.js
+++ b/app/assets/javascripts/discourse/app/components/group-post.js
@@ -3,5 +3,7 @@ import Component from "@ember/component";
export default Component.extend({
@discourseComputed("post.url")
- postUrl: Discourse.getURL
+ postUrl(url) {
+ return Discourse.getURL(url);
+ }
});