Codeigniter won’t redirect the “url” oauth://application properly, pinning it after the current domain like so:
http://mywebsite.com/index.php/oauth://application
The code looks like this:
redirect("oauth://application", "location"); // changing to refresh doens't work either.
Any idea how to get this to work? I’m trying to redirect to an Android app.
Many thanks.
Might as well use PHP’s native
headerfunction:If you want to tweak CI’s function, just create
application/helpers/my_url_helper.phpand adjust thepreg_matchURL check: