Force page reload when loading offline page in single doc mode

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

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

Loading…
Cancel
Save