8000 [Routing] Trailing slash issue with `_format` parameter · Issue #31225 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Routing] Trailing slash issue with _format parameter #31225
Closed
@Kocal

Description

@Kocal

Symfony version(s) affected: 4.2.7

Description
When using routes parameters (like format), there is an issue when using a trailing slash:
Sélection_598

How to reproduce
I've created a reproduction repo that contains two routes:

  • /foo
  • /bar.{_format} where _format = html by default

Reproduction steps:

Additional context
I first thought it was because of API Platform (I'm faced this issue on a URL generated by API Platform), but after some investigations it seems the issues is due to parameters.

Note this has been working fine in Symfony 4.2.4, 4.2.5 and 4.2.6.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0