Add setting for "force home" mobile behavior

This commit is contained in:
Lance Edgar 2018-02-04 14:28:53 -06:00
parent aded59d7ff
commit 7b4f7d758e

View file

@ -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):
<script type="text/javascript">
location.href = '${request.route_url('mobile.home')}';
</script>