Closed lampelk closed 11 months ago
You can try setting the HTTP_HOST
env var when generating the file to localhost:8080
. Are you using the older Version doesn't matter, you should always set the fos-routing
npm package, or the one bootstrapped with the bundle?HTTP_HOST
when generating the file from the command line, or call a method on the Router instance. I created an MR to clarify this in the documentation.
When dumping routes on local dev:
The json output does not include
port
if the web server is running with a port (e.g.8080
):Expected result:
I found this issue when trying to generate absolute URLs:
Result:
Expected result:
Environment: php: 8.0.2 symfony: 6.0* friendsofsymfony/jsrouting-bundle: 3.1.1
Related (maybe?): #391