1 Reply Latest reply on Mar 16, 2009 8:13 AM by Ben Spink

    navigateToURL question

      Is there a way to get the current host information or not have to specify it when using navigateToURL( ..... )

      I want to redirect users to a different URL under certain conditions but I do not know what host they are coming in on. My application runs across multiple servers ( for fail over ) thus I may come in on

        • 1. Re: navigateToURL question
          Ben Spink
          Internally how you handle the failover has no bearing on how the user connected originally. Their browser still uses the same generic URL to connect with. Even if you are redirecting them to a specific URL via a redirect, its still fine as your app knows the browser's URL that they used:

          var baseURL:String = Application.application.url.split("/")[0]+"//"+Application.application.url.split("/")[2]+ "/";