symfony/symfony — Issue #3262: [router] Wrong port after redirecting
Author: pdaether
Created: 2012-02-03 14:42:28+00:00
State: open

I use a diffent HTTP port than the default :80.
A redirect due to a missing trailing slash strips the correct port out of the url.

My Route:

myroute:
pattern: /{category}/{product}/
defaults: { _controller: XxlBaseBundle:Default:routeToOldCode }

config.yml:

framework:
router: { resource: "%kernel.root_dir%/config/routing.yml", http_port: 8080 }

http://domain.local:8080/cat1/prod1/ -> works!
http://domain.local:8080/cat1/prod1 -> redirects to http://domain.local/cat1/prod1/ without port so you get a 404.

My Symfony-Version:

$ app/console -V
Symfony version 2.0.9 - app/dev/debug

Greetings
Patrick