Fixato bug redirect
Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
@@ -100,7 +100,9 @@ class GUIHandlerMobile {
|
||||
}
|
||||
|
||||
if(!$admin){
|
||||
echo "<script type=\"text/javascript\">if(screen.width >=700){window.location='".GUIHandler::getBaseUrl().$_SERVER["REQUEST_URI"]."';}</script>";
|
||||
$uri = $_SERVER["REQUEST_URI"];
|
||||
$uri =preg_replace("~^/mobile~", "", $uri);
|
||||
echo "<script type=\"text/javascript\">if(screen.width >=700){window.location='".GUIHandler::getBaseUrl().$uri."';}</script>";
|
||||
}
|
||||
echo '</head>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user