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 fbaf936e7e
commit 5ddfacf436

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