Browse Source

[fix] Only redirect if it's not already index.php

master
Muthu Kumar 6 years ago
parent
commit
e9b881872b
  1. 5
      plugins/nextcloud-md.js

5
plugins/nextcloud-md.js

@ -1 +1,4 @@
module.exports = app => app.use((req, res, next) => res.redirect('/index.php' + req.originalUrl));
module.exports = app => app.use((req, res, next) =>
req.originalUrl.includes('index.php')
? next()
: res.redirect('/index.php' + req.originalUrl));

Loading…
Cancel
Save