mirror of
https://github.com/flarum/core.git
synced 2025-10-29 14:36:17 +01:00
fix(postmeta): use app baseUrl instead of location.origin (#3216)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user