8000 [Routing] Strange behavior with default parameter · Issue #3621 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Routing] Strange behavior with default parameter #3621
Closed
@jcrombez

Description

@jcrombez

Given the following route :

@route("/foo{bar}", defaults={"bar" = "ok"}, name="test")

And the following twig :

{{ path('test') }}

The excepted result would be : "/foo"
But the result is : "/fo"

I guess symfony remove an imaginary trailing slash or something like that ? Is this behavior excepted ? Is it a bug ? Am i doing something i'm not supposed to with this route ?

< 4DB0 div height="sm" width="150px" class="Box-sc-g0xbh4-0 LoadingSkeleton-sc-695d630a-0 jKxfJf eyUUZI">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0