From da76c217d4fa04e56194bff6ca890c4994289e2f Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 10 Jan 2017 17:43:31 +0000 Subject: [PATCH] Fix a bug where secureID wouldn't be sent on only the first load The problem was because index.html was in the public folder and was being served on the first page load instead of the Pug view being rendered. The solution was to move it into the views folder so that the only way to get to it was through the template engine. --- {public => views}/index.html | 0 views/index.pug | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {public => views}/index.html (100%) diff --git a/public/index.html b/views/index.html similarity index 100% rename from public/index.html rename to views/index.html diff --git a/views/index.pug b/views/index.pug index 3a32d31..f8e0576 100644 --- a/views/index.pug +++ b/views/index.pug @@ -1,4 +1,4 @@ doctype html script. var secureID = '!{secureID}'; -include ../public/index.html +include index.html