Skip to content

[Routing] Using a host requirement in a route breaks dots in variables of other routes #27721

Closed
@rpkamp

Description

@rpkamp

Symfony version(s) affected: 4.1.1

Description
We have a URL with a variable that will contain a dot, but that doesn't work under Symfony 4.1.1 any more when there is another route that has a host requirement set.

How to reproduce

  1. Put the following in routes.yaml:
foo:
  path: /foo
  host: 'foo.example.com'
  controller: foo_controller

bar:
  path: /bar/{baz}
  controller: baz_controller
  1. Try to visit /bar/abc.123

When you remove host: 'foo.example.com' from the foo route it does work.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions