Merge branch 'stable'

This commit is contained in:
zadam
2022-11-01 19:10:16 +01:00
4 changed files with 22 additions and 16 deletions

View File

@@ -111,7 +111,12 @@ function register(router) {
router.use('/share/canvas_share.js', express.static(path.join(__dirname, 'canvas_share.js')));
router.get(['/share', '/share/'], (req, res, next) => {
router.get('/share/', (req, res, next) => {
if (req.path.substr(-1) !== '/') {
res.redirect('../share/');
return;
}
shacaLoader.ensureLoad();
renderNote(shaca.shareRootNote, req, res);