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