diff --git a/tailbone/templates/mobile/base.mako b/tailbone/templates/mobile/base.mako index 29a217bb..75d8c0e0 100644 --- a/tailbone/templates/mobile/base.mako +++ b/tailbone/templates/mobile/base.mako @@ -11,6 +11,16 @@ ${h.javascript_link(request.static_url('tailbone:static/js/jquery.ui.tailbone.mobile.js'))} ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.mobile.js'))} ${self.extra_javascript()} + + ## since jquery mobile will "utterly cache" the first page which is loaded + ## by the client, we must make sure that is always the home page. so if + ## user tries to e.g. "refresh" some other page, redirect to home page + % if request.matched_route.name != 'mobile.home': + + % endif + % if request.rattail_config.getbool('tailbone', 'mobile.flash.autodismiss', default=True):