Description / Steps to reproduce / Feature proposal
If the app is running behind a proxy, /swagger-ui picks up the app's port number in the url parameter in the redirection to https://loopback.io/api-explorer.
File of interest: @loopback/rest/src/rest.server.ts
Method: _getUrlForClient
Current Behavior
https://mylb4app.eu-gb.mybluemix.net/swagger-ui redirects to https://loopback.io/api-explorer/?url=https://mylb4app.eu-gb.mybluemix.net:8080/openapi.json
Expected Behavior
https://mylb4app.eu-gb.mybluemix.net/swagger-ui redirects to https://loopback.io/api-explorer/?url=https://mylb4app.eu-gb.mybluemix.net/openapi.json
See Reporting Issues for more tips on writing good issues
Description / Steps to reproduce / Feature proposal
If the app is running behind a proxy,
/swagger-uipicks up the app's port number in theurlparameter in the redirection tohttps://loopback.io/api-explorer.File of interest:
@loopback/rest/src/rest.server.tsMethod:
_getUrlForClientCurrent Behavior
https://mylb4app.eu-gb.mybluemix.net/swagger-ui redirects to https://loopback.io/api-explorer/?url=https://mylb4app.eu-gb.mybluemix.net:8080/openapi.json
Expected Behavior
https://mylb4app.eu-gb.mybluemix.net/swagger-ui redirects to https://loopback.io/api-explorer/?url=https://mylb4app.eu-gb.mybluemix.net/openapi.json
See Reporting Issues for more tips on writing good issues