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
113 return113 return
114 114
115 isIndex: ->115 isIndex: ->
116 @context.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex())116 @context?.path is '/' or (app.isSingleDoc() and @context?.entry?.isIndex())
117 117
118 setInitialPath: ->118 setInitialPath: ->
119 # Remove superfluous forward slashes at the beginning of the path119 # Remove superfluous forward slashes at the beginning of the path