Fix exception in Router#isIndex

pull/602/merge
Thibaut Courouble 8 years ago
parent 84846843f3
commit c42ef5dc29

@ -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

Loading…
Cancel
Save