1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 06:16:23 +02:00

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} * @returns {String}
*/ */
getPermalink(post) { getPermalink(post) {
return window.location.origin + app.route.post(post); return app.forum.attribute('baseUrl') + app.route.post(post);
} }
} }