From fbe41366c08c35f00778ca7e5a52142709c264fd Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 24 Jan 2020 15:28:12 +0100 Subject: [PATCH] fix legacy link --- app/Controllers/Http/DownloadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Http/DownloadController.js b/app/Controllers/Http/DownloadController.js index 01ab9ef..c1a6167 100644 --- a/app/Controllers/Http/DownloadController.js +++ b/app/Controllers/Http/DownloadController.js @@ -40,7 +40,7 @@ class DownloadController { day = today.getDay(); month = today.getMonth(); // If legacy link return - if (request.url == '/legacy') return view.render('legacy', { title: title, viewCounter: viewCounter, day: day, month: month, announcement: announcement}); + if (request.url() == '/legacy') return view.render('legacy', { title: title, viewCounter: viewCounter, day: day, month: month, announcement: announcement}); files = []; let file = [];