Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Routing] Trailing slash issue with _format parameter #31225

Copy link
Copy link
Closed
@Kocal

Description

@Kocal
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.