From 5c0292c051b8fa1b1021096df8c511f5908d3f2b Mon Sep 17 00:00:00 2001 From: chapel Date: Sun, 13 Nov 2011 13:01:30 -0800 Subject: [PATCH] Send index.html on all ajax views, fix public file includes --- app.js | 2 +- public/index.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index 212b30d..7c98b19 100644 --- a/app.js +++ b/app.js @@ -433,7 +433,7 @@ function checkAjax( req, res, next ) { if ( req.xhr ) { next(); } else { - res.redirect( '/' ); + res.sendfile( 'public/index.html' ); } } diff --git a/public/index.html b/public/index.html index b2dde81..38c6c42 100644 --- a/public/index.html +++ b/public/index.html @@ -6,13 +6,13 @@ - + - - - - - + + + + + -- 2.25.1