Fix error in app.Router#isDocIndex

pull/447/merge
Thibaut Courouble 9 years ago
parent 2a7107f94b
commit 70440a1c16

@ -103,7 +103,7 @@ class app.Router
location.pathname is '/'
isDocIndex: ->
@context.doc and @context.entry is @context.doc.toEntry()
@context and @context.doc and @context.entry is @context.doc.toEntry()
setInitialPath: ->
# Remove superfluous forward slashes at the beginning of the path

Loading…
Cancel
Save