Phone Home page is not loaded after login AppCloud [Fixed]

4
When running a new plain Mendix 5.7 project LOCALLY with the "AppCloud Default Project" Layout in the phone the login page redirects me to the homepage of the desktop application. After refreshing the browser the correct page is loaded. What causes this issue? it looks that the index.html, uses cookies for the redirect you to the correct login in. But the query parameter "?profile=phone" is not place after at the URL to of the login.html page. How To solve it, edit the theme login.html page replace: <script> if (!document.cookie || !document.cookie.match(/(^|;)originURI=/gi)) document.cookie = "originURI=/login.html"; </script> by this <script> var match = /(?:\?|&)(profile=[^&]+)/.exec(location.search); if (!document.cookie || !document.cookie.match(/(^|;)originURI=/gi)) document.cookie = "originURI=/login.html"+ (match ? "?" + match[1] : "");; </script> Does this work running in the cloud too?
asked
0 answers