History

Improve URL search

Closes #434.

Thibaut Courouble committed 10 years ago

Commit ba4bcbf1 parent 73fa07a3 files · +34 −12Browse files

Showing the changes to assets/javascripts/app (1 of 3 files). Show all

Unified · Split

assets/javascripts/app/router.coffee+3−0
@@ -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 path109 # Remove superfluous forward slashes at the beginning of the path
107 if (path = location.pathname.replace /^\/{2,}/g, '/') isnt location.pathname110 if (path = location.pathname.replace /^\/{2,}/g, '/') isnt location.pathname