diff --git a/plugins/nextcloud-md.js b/plugins/nextcloud-md.js index be1ecec..7719fab 100644 --- a/plugins/nextcloud-md.js +++ b/plugins/nextcloud-md.js @@ -1 +1,4 @@ -module.exports = app => app.use((req, res, next) => res.redirect('/index.php' + req.originalUrl)); \ No newline at end of file +module.exports = app => app.use((req, res, next) => + req.originalUrl.includes('index.php') + ? next() + : res.redirect('/index.php' + req.originalUrl));