@@ -24,7 +24,7 @@ class app.views.Document extends app.View
app.router.show '/help#shortcuts'
onEscape: ->
- if app.isSingleDoc() then window.location = '/' else app.router.show '/'
+ app.router.show if app.isSingleDoc() then app.doc.fullPath() else '/'
onBack: ->
history.back()