php - laravel Redirect::to() loses the port -
i'm running development environment through vagrant (ubuntu, nginx, php-fpm) , accessing server on localhost:8080. i'm using laravel 4 , trying set authentication system. seems laravel ignores port using if using alternative port. true? example, when run redirect http://localhost:8080/login
/profile
end on http://localhost/profile
. have suggestions on how can fix/patch this?
this smells bug. stuck digging in urlgenerator when looks request->root()
. can see there no root()
function on symfony\component\httpfoundation\request. try replacing ->root()
->getbaseurl()
instead.
regardless of outcome, should prepare small test case (with little excess code possible) , report issue on github fixed. if can find solution while you're @ pull request can made fix issue.
Comments
Post a Comment