8000 Redirect URLs with a Trailing Slash option · Issue #26207 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Redirect URLs with a Trailing Slash option #26207
Closed
@soullivaneuh

Description

@soullivaneuh
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.0.4

On a classic Symfony setup, if we have a route with /en/blog url, we will get a 404 error if we try /en/blog/.

The documentation well explains how to handle that: https://symfony.com/doc/current/routing/redirect_trailing_slash.html

But I think it's a very common issue.

Why not proposing this as an option (IMHO, it should be activated by default) instead of telling the user to always write the same code? Reuse code is better than rewriting it. 👍

Of course, we may create a bundle instead. But I think this feature has his place on the internal Symfony codebase.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0