Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -24,7 +24,7 @@ class app.views.Document extends app.View · 23 unmodified lines | ||
| 24 | 24 | app.router.show '/help#shortcuts' |
| 25 | 25 | |
| 26 | 26 | onEscape: -> |
| 27 | − if app.isSingleDoc() then window.location = '/' else app.router.show '/' | |
| 27 | + app.router.show if app.isSingleDoc() then app.doc.fullPath() else '/' | |
| 28 | 28 | |
| 29 | 29 | onBack: -> |
| 30 | 30 | history.back() |