Closed
Description
SwaggerUI throws error: Uncaught TypeError: Failed to construct 'URL': Invalid base URL
When changing server (from the dropdown)
Steps:
- Load the following API definition: https://gist.github.com/ponelat/71dba4b85b403455e0718383f7cf3bd3
- Change the server from dropdown
Expected:
The server field is changed
Actual:
An Uncaught TypeError is thrown
SwaggerUI demo with definition: https://petstore.swagger.io/?url=https://gist.githubusercontent.com/ponelat/71dba4b85b403455e0718383f7cf3bd3/raw/50737b50e2ee42ebfc5afa7fb5137b588c6ba0cc/server-url-issue.yml#/default/get_something