fix(postmeta): use app baseUrl instead of location.origin (#3216)

This commit is contained in:
David Wheatley 2021-12-20 17:25:04 +01:00 committed by GitHub
parent 4ad961c972
commit a1cc456f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}