Iām developing an iPhone PhoneGap application and stumbled upon a problem redirecting the user after logging in.
The stream is as follows:
- Download application.
I redirect the user to the login page located on the remote server and pass the parameter of the current page so that the user is redirected after a successful login.
eg. http://www.myloginserver.co.il?ret= 'is the URL of the local html file.
The problem is that I cannot get the login page to redirect to local html.
I tried passing the following URLs:
- window.location.href
- window.location.href.substring (window.location.href.indexOf ("www /")
- "file: ////" + window.location.href.substring (window.location.href.indexOf ("www /")
Has anyone encountered this issue?
Thanks Udi
source share