FriendsOfSymfony / FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.
1.48k stars 261 forks source link

Bug - Routing.generate #423

Closed BenjaminPoutriquet35800 closed 2 years ago

BenjaminPoutriquet35800 commented 2 years ago

Hi :)

I am having a problem when I try to generate one route from JS.

Explanation :

Controller definition : route_def_controller

Render route from twig : render_twig

But from JS : route_from_js

Router does nothing :(

Regards

BenjaminPoutriquet35800 commented 2 years ago

I think problem is this var : hasDefault in if condition image

tobias-93 commented 2 years ago

Hi @BenjaminPoutriquet35800, explicit inclusion of defaults using the exclamation mark was not supported yet in this bundle. I have added it in 22029dedd87e7ab9d82c585ea8c7aef63b37e21f, can you try if the dev-master branch works for you? Thanks

BenjaminPoutriquet35800 commented 2 years ago

Hi @tobias-93

Awesome that's good ! Really thanks <3

Regards

tobias-93 commented 2 years ago

Version 3.1.0 has been released with the added functionality