Mike Posted January 28, 2019 Share Posted January 28, 2019 Hi, For example an uniGUI application is accessible via a SSL certificaat (f.e. https://www.example.com). Would it be possible to redirect URL https://www.example.com/m to another uniGUI mobile application so every user (desktop or mobile) can use the same URL (except the /m path)? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 29, 2019 Share Posted January 29, 2019 Hi Please set Servermodule.options.soAutoPlatformSwitch to true then both mobile and desktop can use same link. When mobile user try to access, unigui will forward it to "https://www.example.com/m" Quote Link to comment Share on other sites More sharing options...
Mike Posted January 29, 2019 Author Share Posted January 29, 2019 Hi, I assume there is only one application. Is that correct? Instead of this I would like to redirect https://www.example.com/m to another uniGUI application (f.e. with IP 192.168.1.5:8443) on the same machine. Would this be possible? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 29, 2019 Share Posted January 29, 2019 So please check touch/detectplatform example. You can use it Quote Link to comment Share on other sites More sharing options...
Mike Posted January 29, 2019 Author Share Posted January 29, 2019 Thank you. I checked out the touch/detectplatform so now I know what kind of device is accessing the application. When it is a mobile device I would like to redirect it to another webapplication (mobile uniGUI). Would then AResponseInfo.Redirect('http://192.168.1.5:8443') in UniGUIServerModuleHTTPDocument work and can I prevent that the user sees the internal address? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 29, 2019 Share Posted January 29, 2019 uniPlatform is valid in OnCreate module of UniMainModule.So you can't use it in servermodule. Quote Link to comment Share on other sites More sharing options...
Mike Posted January 29, 2019 Author Share Posted January 29, 2019 Ok will do some tests. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted December 24, 2020 Share Posted December 24, 2020 On 1/29/2019 at 2:25 PM, Hayri ASLAN said: Hi Please set Servermodule.options.soAutoPlatformSwitch to true then both mobile and desktop can use same link. When mobile user try to access, unigui will forward it to "https://www.example.com/m" Hello Hayri, Hoping all is good. I have a strange behavior with mobile version (when url is masked): i just baught a name domain from NameCheap, and from their cpanel, REDIRECT it to my ip static server. example : www.mydomain --> my_ipadress:8077 obeviously i set my unigui project : Servermodule.options.soAutoPlatformSwittrueunigui to True. Result : • When my_ipadress:8077 without masking (Masked option = False) then all is OK. Desktop version looks good and mobile version also. • When my_ipadress:8077 with Masked option = True Then only desktop is good. Mobile version appears in a scalable view. it's so small on the mobile screen and i have to zoom in + with my finger to get it. any idea ? i tried also : www.mydomain --> my_ipadress:8077/m Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted December 24, 2020 Share Posted December 24, 2020 Seems to be a known problem. https://theme.co/forum/t/page-not-responsive-when-using-page-forwarding-with-masking/16590 investigation... I will try to solve it and come back soon ... Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted December 25, 2020 Share Posted December 25, 2020 Here we go Summary : You just baught a Name Domain and would like to associate it to your Static IP Adress. So peaple can open your unigui hybrid, responsive application (desktop & mobile) from an URL like : As service : http//:www.mynamedomaine:myportnumber As iis : http//:www.mynamedomaine/myalias/myproject.dll OK. it's important to know this : From your cpanel (company where you baught your name domaine) like Godaddy, NameCheap, ... • Never do a Redirect URL with masked IP, • Create instead a record A, wich will point to your ipAdress. That's all. • Obviously : Servermodule.options.soAutoPlatformSwittrueunigui to True. This will automatically, swich your responsive design to mobile and desktop version. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.