FOSJsRoutingBundle icon indicating copy to clipboard operation
FOSJsRoutingBundle copied to clipboard

"--target" command ignores host

Open JohnnyEvo opened this issue 8 years ago • 1 comments
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

JohnnyEvo avatar Mar 10 '17 07:03 JohnnyEvo

Hi @JohnnyEvo could you check if this issue persists when using version 2.0.0 of the bundle?

tobias-93 avatar Nov 08 '17 21:11 tobias-93