javascriptphpportalcaptiveportal

How to redirect to default browser from captive portal (cna browser)


So, i have to redirect user from captive portal to browser, cause captive portal doesnt support japascript and cookies correctly. How anyone an idea? Thank you very much


Solution

  • Android: just use a tag with href=intent://yourUrl.com#Intent;scheme=http;end

    Ios: After opening captive portal just open access to

    This url's have to return this answer:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    <HTML>
    <HEAD>
    	<TITLE>Success</TITLE>
    </HEAD>
    <BODY>
    	Success
    </BODY>
    </HTML>

    Important: you have to give access to this url's after opening captive portal. So after giving answer to this urls, any link will go to safari or default browser.