Closed Ousret closed 4 years ago
Hi 👋,
I am proposing this PR in order to fix bad url generation when using symfony flex, webpack encore and fosjsrouting json generation.
As a project can be hosted with different domain name, it is complicated to hardcode into our sources.
This is a minor change. We are verifying if baseurl exist and is not empty to use it as is, else we use window.location to guide us.
Thank you for this amazing project !
Bye.
Thanks @Ousret
Hi 👋,
I am proposing this PR in order to fix bad url generation when using symfony flex, webpack encore and fosjsrouting json generation.
As a project can be hosted with different domain name, it is complicated to hardcode into our sources.
This is a minor change. We are verifying if baseurl exist and is not empty to use it as is, else we use window.location to guide us.
Thank you for this amazing project !
Bye.