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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -