Wrong url in developer portal catalog


I’m seeing in the developer portal that when it loads a catalog (swagger ui) it initially shows the correct url (https://tyk.my.domain/path) but once the swagger doc is fetched it overwrites the placeholder url with that from the json it retrieves which is incorrect.

EDIT: might add this is in v1.0 dashboard.


I’m seeing as well that if the basePath key in the swagger json is empty, it will set the swagger client url to <portal url>/path and not the domain configured for that api.


remove the basePath key altogether from your docs, or remove the logic from the swagger.html template