fix assuming that trilium is exposed on the root path, closes #3452

This commit is contained in:
zadam 2022-12-25 10:48:51 +01:00
parent a083917db1
commit c6485f8e03
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ function setupPage(req, res) {
windowService.closeSetupWindow();
}
else {
res.redirect('/');
res.redirect('.');
}
return;

View File

@ -7,7 +7,7 @@ module.exports = {
mobile: './src/public/app/desktop.js',
},
output: {
publicPath: `/${assetPath}/app-dist/`,
publicPath: `${assetPath}/app-dist/`,
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'desktop.js'
},

View File

@ -7,7 +7,7 @@ module.exports = {
mobile: './src/public/app/mobile.js',
},
output: {
publicPath: `/${assetPath}/app-dist/`,
publicPath: `${assetPath}/app-dist/`,
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'mobile.js'
},

View File

@ -7,7 +7,7 @@ module.exports = {
mobile: './src/public/app/setup.js',
},
output: {
publicPath: `/${assetPath}/app-dist/`,
publicPath: `${assetPath}/app-dist/`,
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'setup.js'
},