refactor(tracking): inject space id via templating instead of using cookies
This commit is contained in:
committed by
Benedikt Rötsch
parent
46074b508d
commit
67dca923e9
2
app.js
2
app.js
@@ -94,7 +94,7 @@ app.use(catchErrors(async function (request, response, next) {
|
||||
const space = await getSpace()
|
||||
|
||||
// Update credentials in cookie when space connection is successful
|
||||
updateCookie(response, SETTINGS_NAME, settings)
|
||||
updateCookie(response, SETTINGS_NAME, response.locals.settings)
|
||||
|
||||
// Get available locales from space
|
||||
response.locals.locales = space.locales
|
||||
|
||||
Reference in New Issue
Block a user