Unified · Split
| @@ -41,8 +41,11 @@ class app.views.OfflinePage extends app.View · 40 unmodified lines | |||
| 41 | docEl: (doc) -> | 41 | docEl: (doc) -> |
| 42 | @find("[data-slug='#{doc.slug}']") | 42 | @find("[data-slug='#{doc.slug}']") |
| 43 | 43 | ||
| 44 | onRoute: -> | 44 | onRoute: (route) -> |
| 45 | @render() | 45 | if app.isSingleDoc() |
| 46 | window.location = "/#/#{route.path}" | ||
| 47 | else | ||
| 48 | @render() | ||
| 46 | return | 49 | return |
| 47 | 50 | ||
| 48 | onClick: (event) => | 51 | onClick: (event) => |