Hi,
We have an application that uses Safari/Apple webkit ( Mac OS 10.8 and later - Netscape - browser: safari - version: 5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Safari/536.30.1 - userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Safari/536.30.1 ) to show web content. Our application loads a custom scheme URI say "cec://engine/load.init.html"
Our application registered the custome scheme protocol with the webkit "cec://" so that appropriate handler is triggered in our code to handle the loading of "load.init.html".
Within the load.init.html, code, we redirect to a dynamic page from web:
<html>
...
<body>
<script type="text/javascript">
location.href = "https://api.cec.com";
</script>
</body>
</html>
Upon loading the above page it redirects to "https://api.cec.com":
The api.cec.com executes some javascript which sets a relative URL back
location.href = "Authenticate/opi/.....";
Now it tries to redirect to "cec://engine/Authenticate/opi/...." instead of "https://api.cec.com/Authenticate/opi"
What could be the reason that this uses the base scheme protocol instead of the current document https:// Any help would benefit troubleshoot this issue.
Thanks