FIX: Use correct subfolder format for ember-cli config (#23754)

Ember expects a trailing slash on this value, which is different to the Rails app's behavior. Values without a trailing slash seemed to work for legacy ember-cli builds, but would lead to errors under embroider.
This commit is contained in:
David Taylor 2023-10-03 10:03:58 +01:00 committed by GitHub
parent d7b64b121b
commit 7b5b3799c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module.exports = function (environment) {
const ENV = {
modulePrefix: "discourse",
environment,
rootURL: process.env.DISCOURSE_RELATIVE_URL_ROOT || "/",
rootURL: `${process.env.DISCOURSE_RELATIVE_URL_ROOT ?? ""}/`, // Add a trailing slash (not required by the Rails app in this env variable)
locationType: "history",
historySupportMiddleware: false,
EmberENV: {