sockjs-node url is ignoring the 'pathname' part of the publicHost #15002
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 8.0.6
Description
Running the command
ng serve --public-host http://myhost.example.com/mypath
cause the URL for loadingsockjs-node
script to ignore the/mypath
(i.e. the pathname part) of the public host URL.🔬 Minimal Reproduction
Run the command
ng serve --public-host http://myhost.example.com/mypath
Open the browser to the app URL and check the outgoing requests in network tab in developer tools
As the problem is not related to app code, any app created with
ng new
with default settings should be fine to reproduce the problem.🔥 Expected Behaviour
Calls to sock-nodejs should look like this:
http://myhost.example.com/mypath/sockjs-node/info?t=123456
🔥 Actual Behaviour
The actual URL looks like this:
http://myhost.example.com/sockjs-node/info?t=123456
🌍 Your Environment
Anything else relevant?
This was working fine in 8.0.6. Updating to 8.1.0 (using ng update) caused the problem. Reverting back to 8.0.6 solves the problem.
The text was updated successfully, but these errors were encountered: