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

Symfony 3.3 routing automatic trailing slash missing #23004

Copy link
Copy link
Closed
@dubaksk

Description

@dubaksk
Issue body actions
Q A
Bug report? yes
Feature request? yes
BC Break report? no
RFC? ?
Symfony version 3.3.0

After upgrading to Symfony 3.3.0 we realised, that when we had something like this:

     * @Route(
     *     "/c/{articleId}/",
     *     name="article_simple_no_alias",
     *     methods={"GET"},
     *     requirements={"articleId": "[0-9]+?"}
     * )

when I put into browser URL without trailing slash, I was redirected automatically to URL with trailing slash. And it worked also other way.

In profiler -> request -> parameters, I could see:

_controller	
"Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction"
permanent	true
scheme	null

It was ok. But since 3.3 version this feature is missing and we could not find it in changelog if it was change intentionally. Now the page without trailing slash is giving us error 404 and we really don't want to go through whole project and update all routes, so this trailing slash would be optional..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    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.