Closes #434.
Showing the changes to assets/javascripts/app (1 of 3 files). Show all
Unified · Split
| @@ -102,6 +102,9 @@ class app.Router · 101 unmodified lines | ||
| 102 | 102 | isRoot: -> |
| 103 | 103 | location.pathname is '/' |
| 104 | 104 | |
| 105 | + isDocIndex: -> | |
| 106 | + @context.doc and @context.entry is @context.doc.toEntry() | |
| 107 | + | |
| 105 | 108 | setInitialPath: -> |
| 106 | 109 | # Remove superfluous forward slashes at the beginning of the path |
| 107 | 110 | if (path = location.pathname.replace /^\/{2,}/g, '/') isnt location.pathname |