diff --git a/static/js/global_js.js b/static/js/global_js.js index 782217a..bb1727e 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -24,6 +24,11 @@ function middleWareJS(){ body.style.overflow = "" } } + if (!window.location.href.includes("mobile") && !window.location.href.includes("route_search_results")){ + window.location.href = window.location.href + `?mobile=${getInfoAboutUser() === 'mobile'}` + } else if (window.location.href.includes("route_search_results")){ + window.location.href = window.location.href + `&mobile=${getInfoAboutUser() === 'mobile'}` + } }