We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68857a commit ca1623aCopy full SHA for ca1623a
lib/swagger/index.js
@@ -17,7 +17,7 @@ swagger._getSwaggerBase = () => {
17
let basePath, host, protocol
18
if (jsonApi._apiConfig.urlPrefixAlias) {
19
const urlObj = url.parse(jsonApi._apiConfig.urlPrefixAlias)
20
- basePath = basePath.replace(/(?!^\/)\/$/, '')
+ basePath = urlObj.pathname.replace(/(?!^\/)\/$/, '')
21
host = urlObj.host
22
protocol = urlObj.protocol.replace(/:$/, '')
23
} else {
0 commit comments