1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

fix: don't duplicate path in URL to post on subdirectory installs. (#3354)

`baseUrl` includes the path portion of the url, as does `basePath`, which is included in `app.route.x` function outputs. The `baseOrigin` (with no path component at all) should be used instead.
This commit is contained in:
Alexander Skvortsov
2022-04-23 10:23:03 -04:00
committed by GitHub
parent b8df3863d1
commit 863a8ddfff
2 changed files with 3 additions and 2 deletions

View File

@@ -55,6 +55,6 @@ export default class PostMeta extends Component {
* @returns {string}
*/
getPermalink(post) {
return app.forum.attribute('baseUrl') + app.route.post(post);
return app.forum.attribute('baseOrigin') + app.route.post(post);
}
}