Force page reload when loading offline page in single doc mode

pull/165/head
Thibaut 10 years ago
parent 6a82830ab4
commit 16486ff467

@ -41,8 +41,11 @@ class app.views.OfflinePage extends app.View
docEl: (doc) -> docEl: (doc) ->
@find("[data-slug='#{doc.slug}']") @find("[data-slug='#{doc.slug}']")
onRoute: -> onRoute: (route) ->
@render() if app.isSingleDoc()
window.location = "/#/#{route.path}"
else
@render()
return return
onClick: (event) => onClick: (event) =>

Loading…
Cancel
Save