mirror of
https://github.com/Redocly/redoc.git
synced 2025-03-03 17:35:46 +03:00
Strip trailing / in api url
This commit is contained in:
parent
3b5cd1068b
commit
5446c573c5
|
@ -39,6 +39,9 @@ export default class SchemaManager {
|
|||
/* calculate common used values */
|
||||
init() {
|
||||
this.apiUrl = this._schema.schemes[0] + '://' + this._schema.host + this._schema.basePath;
|
||||
if (this.apiUrl.endsWith('/')) {
|
||||
this.apiUrl = this.apiUrl.substr(0, this.apiUrl.length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
get schema() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user