FOSJsRoutingBundle icon indicating copy to clipboard operation
FOSJsRoutingBundle copied to clipboard

[BC] route without schemes are "undefined://the_correct_route_here"

Open floriancgit opened this issue 8 years ago • 3 comments
trafficstars

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

floriancgit avatar Aug 21 '17 15:08 floriancgit

which version of the bundle are you using ?

stof avatar Aug 21 '17 16:08 stof

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

floriancgit avatar Aug 22 '17 09:08 floriancgit

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.

tobias-93 avatar Aug 29 '17 10:08 tobias-93