From a1cc456f3af1f8be1fdf00df316a9109c40fd28b Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 20 Dec 2021 17:25:04 +0100 Subject: [PATCH] fix(postmeta): use app `baseUrl` instead of `location.origin` (#3216) --- js/src/forum/components/PostMeta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/forum/components/PostMeta.js b/js/src/forum/components/PostMeta.js index cbf2234ed1..7e7430644c 100644 --- a/js/src/forum/components/PostMeta.js +++ b/js/src/forum/components/PostMeta.js @@ -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); } }