Skip to content

Commit

Permalink
fix(postmeta): use app baseUrl instead of location.origin (#3216)
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat authored Dec 20, 2021
1 parent 4ad961c commit a1cc456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/PostMeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ export default class PostMeta extends Component {
* @returns {String}
*/
getPermalink(post) {
return window.location.origin + app.route.post(post);
return app.forum.attribute('baseUrl') + app.route.post(post);
}
}

0 comments on commit a1cc456

Please sign in to comment.