History

Fix exception in Router#isIndex

Thibaut Courouble committed 9 years ago

Commit c42ef5d1 parent 84846841 file · +1 −1Browse files

Unified · Split

assets/javascripts/app/router.coffee+1−1
@@ -113,7 +113,7 @@ class app.Router · 112 unmodified lines
113113 return
114114
115115 isIndex: ->
116− @context.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex())
116+ @context?.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex())
117117
118118 setInitialPath: ->
119119 # Remove superfluous forward slashes at the beginning of the path