How to redirect to dynamic URL with serbarmeli mobile redirection js script?
<p>my local URL on dev PC is localhost:8080/hs</p>

<p>when I access it on my iPhone its 10.xxx.xxx.xx:8080/hs</p>

<p>Using</p>

<pre><code>    &lt;script&gt;
    SA.redirection_mobile ({
        tablet_redirection : "true",
        mobile_url : "localhost:8080/hs/m/home.jsp",
        mobile_prefix : "http"
   });
   &lt;/script&gt;
</code></pre>

<p>Trying to get user to be directed to /m/home.jsp from the root URL, but because I have to explicitly set mobile_url my iphone tries to hit localhost:8080 whch doesnt work, need it to work dynamically.</p>

<p>Does anyone know how to do this?</p>

<p><a href="https://github.com/sebarmeli/JS-Redirection-Mobile-Site/blob/master/README.md" rel="nofollow">library link</a></p>
