Add setting for "force home" mobile behavior
This commit is contained in:
parent
aded59d7ff
commit
7b4f7d758e
|
@ -15,7 +15,7 @@
|
||||||
## since jquery mobile will "utterly cache" the first page which is loaded
|
## 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
|
## 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
|
## 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">
|
<script type="text/javascript">
|
||||||
location.href = '${request.route_url('mobile.home')}';
|
location.href = '${request.route_url('mobile.home')}';
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue