From 7b4f7d758e6ba5f6edf62b25da09d1351f75a454 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 4 Feb 2018 14:28:53 -0600 Subject: [PATCH] Add setting for "force home" mobile behavior --- tailbone/templates/mobile/base.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/mobile/base.mako b/tailbone/templates/mobile/base.mako index 75d8c0e0..06b27910 100644 --- a/tailbone/templates/mobile/base.mako +++ b/tailbone/templates/mobile/base.mako @@ -15,7 +15,7 @@ ## 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': + % if request.matched_route.name != 'mobile.home' and request.rattail_config.getbool('tailbone', 'mobile.force_home', default=True):