2

I have the following code:

$uri = 'iosapp://test';
header('Location: '.$uri);

(a custom url scheme)

for some reason, PHP (kohana) is not redirecting to that url properly.

What should I be doing differently?

Ben
  • 54,723
  • 49
  • 178
  • 224
Kermit the Frog
  • 3,949
  • 7
  • 31
  • 39
  • what is it redirecting to? My guess is it would resolve to http://someurl.comiosapp://test. You're providing a relative URL. – Kai Qing Nov 08 '13 at 00:07

1 Answers1

1

Try using

$uri = 'iosapp://test';
HTTP::redirect($uri);

http://kohanaframework.org/3.3/guide-api/HTTP#redirect