FOSJsRoutingBundle
FOSJsRoutingBundle copied to clipboard
[BC] route without schemes are "undefined://the_correct_route_here"
Hello,
I noticed that with the introduction of the new way to handle scheme, we have routes generated with "undefined" as the scheme.
For example, the FullCalendarBundle https://github.com/adesigns/calendar-bundle
generates "undefined://my_hostname_here/fc-load-events"
instead of "https://my_hostname_here/fc-load-events"
Is there anyway to define a default scheme in the config.yml ?
Thanks Florian
which version of the bundle are you using ?
It was 1.6.1, but same issue with 1.6.2 :
output of the chrome console : https://imgur.com/a/ynbmu
line 1 is the chrome error when loading undefined://... lines 2-4 are console.debug, don't mind them line 5 is the output of Routing.generate... line 6 is the output of Routing
please tell me if you need anymore info
Hi @floriancourgey,
I'm sorry you're experiencing problems. Could you tell me for a route which fails:
- What is the output of
route.schemes[0]? - What is the output of
typeof route.schemes[0]?
Thank you.