mirror of
https://github.com/flarum/core.git
synced 2025-07-15 22:06:24 +02: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}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
getPermalink(post) {
|
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