laravel - Redirecting to another website using Redirect::to() -


when use redirect::to($url) result:

http://localhost/http://mysite.com/foo/bar.html 

but when use redirect::to('http://google.com') goes google fine, guess problem is?

you need provide qualifying url redirect::to() method, otherwise application base url prepended.

$url = 'www.google.com'; // redirects http://localhost:8888/www.google.com return redirect::to($url);  $url = 'http://google.com'; // redirects http://google.com return redirect::to($url); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -