FOSJsRoutingBundle
FOSJsRoutingBundle copied to clipboard
"--target" command ignores host
trafficstars
I would like to change target directory to generated file "fos_js_routing" so I execute this command :
php bin/console fos:js-routing:dump --target=web/compiled/js/fos_js_routing.js --symlink
Then, from my view :
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="/compiled/js/fos_js_routing.js"></script>
But, generated URLs haven't host and frontend controller :
http://ajax/career/education/bloc/formatDate
When I use FOS Js Routing without "--target" option, my URLs are correct :
http://localhost/app_dev.php/ajax/career/education/bloc/formatDate
Is there a bug or I use the bundle incorrectly?
Thank you and have a nice day Johnny
Hi @JohnnyEvo could you check if this issue persists when using version 2.0.0 of the bundle?