diff --git a/assets/javascripts/templates/pages/help_tmpl.coffee b/assets/javascripts/templates/pages/help_tmpl.coffee index ee3bac15..7436beff 100644 --- a/assets/javascripts/templates/pages/help_tmpl.coffee +++ b/assets/javascripts/templates/pages/help_tmpl.coffee @@ -88,7 +88,7 @@ app.templates.helpPage = """
Search on Google
escape -
Reset +
Reset
(press twice in single doc mode)
?
Show this page diff --git a/assets/javascripts/views/layout/document.coffee b/assets/javascripts/views/layout/document.coffee index 45d0752c..7dc0c21a 100644 --- a/assets/javascripts/views/layout/document.coffee +++ b/assets/javascripts/views/layout/document.coffee @@ -24,7 +24,12 @@ class app.views.Document extends app.View app.router.show '/help#shortcuts' onEscape: -> - app.router.show if app.isSingleDoc() then app.doc.fullPath() else '/' + path = if !app.isSingleDoc() or location.pathname is app.doc.fullPath() + '/' + else + app.doc.fullPath() + + app.router.show(path) onBack: -> history.back()