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 | isRoot: -> | 102 | isRoot: -> |
| 103 | location.pathname is '/' | 103 | location.pathname is '/' |
| 104 | 104 | ||
| 105 | isDocIndex: -> | ||
| 106 | @context.doc and @context.entry is @context.doc.toEntry() | ||
| 107 | |||
| 105 | setInitialPath: -> | 108 | setInitialPath: -> |
| 106 | # Remove superfluous forward slashes at the beginning of the path | 109 | # Remove superfluous forward slashes at the beginning of the path |
| 107 | if (path = location.pathname.replace /^\/{2,}/g, '/') isnt location.pathname | 110 | if (path = location.pathname.replace /^\/{2,}/g, '/') isnt location.pathname |