mirror of
https://github.com/Metastem/Wikiless.git
synced 2025-06-28 13:09:51 +00:00
fix typo in routes that broke everything
This commit is contained in:
parent
e751ca467e
commit
9fcddb8e86
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ module.exports = (app, utils) => {
|
|||
const pageName = req.params.page;
|
||||
if (pageName && pageName.startsWith('File:')) {
|
||||
const encodedFileName = encodeURIComponent(pageName.split(':')[1])
|
||||
const mediaPath = `/media/wikipedia/commons/thumb/${encodedFileName}
|
||||
const mediaPath = `/media/wikipedia/commons/thumb/${encodedFileName}`
|
||||
return res.redirect(mediaPath)
|
||||
}
|
||||
return handleWikiPage(req, res, '/wiki/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue