瀏覽代碼

Fix exception in Router#isIndex

Thibaut Courouble 8 年之前
父節點
當前提交
c42ef5dc29
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/javascripts/app/router.coffee

+ 1 - 1
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