Skip to content

swagger ui not working when using basepath link is broken #2329

@david-sw

Description

@david-sw

Description / Steps to reproduce / Feature proposal

in file src/application.ts
i added to the contractor

this.basePath('/icontrol/v1');

so that all controllers will have the base path of /icontrol/v1

Current Behavior

after opening the swagger ui and clicking on the explorer the wrong link is opened
https://explorer.loopback.io/?url=https://127.0.0.1:5443/icontrol/v1/openapi.json
the file openapi.json is not under the new path and if i change the path manually to
https://explorer.loopback.io/?url=https://127.0.0.1:5443/openapi.json
it start working

Expected Behavior

swagger ui link will not change on the static open-api .json

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions