Cannot use a / in route parameter

Created on 3 June 2016, about 9 years ago
Updated 30 January 2023, over 2 years ago

According to the Symfony documentation it should be possible to use a "/" (forward slash) in a route path by following the instructions here https://symfony.com/doc/3.4/routing/slash_in_parameter.html

_hello:
    path:     /hello/{username}
    defaults: { _controller: AppBundle:Demo:hello }
    requirements:
        username: .+

I've tried this but a request to /hello/foo/bar didn't call my controller.

🐛 Bug report
Status

Needs review

Version

10.1

Component
Routing 

Last updated about 6 hours ago

Created by

miiimooo Europe

Live updates comments and jobs are added and updated live.
  • needs profiling

    It may affect performance, and thus requires in-depth technical reviews and profiling.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024