You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can try setting the HTTP_HOST env var when generating the file to localhost:8080. Are you using the older fos-routing npm package, or the one bootstrapped with the bundle? Version doesn't matter, you should always set the 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
The text was updated successfully, but these errors were encountered: