Redirect non-existing links to Overleaf page

This commit is contained in:
yu-i-i
2026-06-20 16:17:00 +02:00
parent ef05288f81
commit 88e9a70e2e
+4
View File
@@ -1271,6 +1271,10 @@ async function initialize(webRouter, privateApiRouter, publicApiRouter) {
)
}
webRouter.get(['/learn*', '/blog*', '/latex*', '/for/*', '/contact*'], (req, res) => {
res.redirect(301, `https://www.overleaf.com${req.originalUrl}`)
})
webRouter.get('/unsupported-browser', renderUnsupportedBrowserPage)
webRouter.get('*', ErrorController.notFound)