mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
fix(postmeta): use app baseUrl
instead of location.origin
(#3216)
This commit is contained in:
parent
4ad961c972
commit
a1cc456f3a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user