Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291721

Cannot use a / in route parameter

$
0
0

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.


Viewing all articles
Browse latest Browse all 291721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>