mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 09:46:25 +08:00
redirect /share to /share/, closes #3264
This commit is contained in:
parent
521d95021b
commit
38d6fddc61
1 changed files with 6 additions and 1 deletions
|
@ -109,7 +109,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);
|
||||
|
|
Loading…
Reference in a new issue