From c42ef5dc29c88603e1b902e8bf8aae672585e18d Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 22 Apr 2017 09:27:09 -0400 Subject: [PATCH] Fix exception in Router#isIndex --- assets/javascripts/app/router.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app/router.coffee b/assets/javascripts/app/router.coffee index 9a0e0b0a..41870424 100644 --- a/assets/javascripts/app/router.coffee +++ b/assets/javascripts/app/router.coffee @@ -113,7 +113,7 @@ class app.Router return isIndex: -> - @context.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex()) + @context?.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex()) setInitialPath: -> # Remove superfluous forward slashes at the beginning of the path