New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect generation of URLs when no explicit host is passed #373
Comments
Hi @danrot, |
Thank you for quickly handling this! And I don't know the codebase too well, if I am completely honest... So I don't really know where this default should actually go without breaking something 🙈 |
And by the way, there is the wrong commit referenced for 2.5.3 on packagist: https://packagist.org/packages/friendsofsymfony/jsrouting-bundle#v2.5.3 |
Oh, and I don't know how that will affect this feature, but you should also consider the port when implementing it again 🙂 |
I tagged the wrong version when I was releasing 2.5.2, it has been corrected now. |
We are using your bundle, and Version 2.5.2 breaks our application, because the URL is generated with the current host, but without the scheme. This results in a relative URL without a starting slash (e.g.
example.org/test
), and then the gets appended to the current URL, resulting in something likeexample.org/test/example.org/test
, which is not a valid URL in our case.We have already broken it down to the usage of
window.location.host
to set thebase_url
, and then generating the URL without the the scheme.The text was updated successfully, but these errors were encountered: