File tree 1 file changed +14
-0
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/ui 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,16 @@ protected String overwriteSwaggerDefaultUrl(String html) {
135
135
return html .replace (Constants .SWAGGER_UI_DEFAULT_URL , StringUtils .EMPTY );
136
136
}
137
137
138
+ /**
139
+ * Setting the url configured with swagger ui properties
140
+ *
141
+ * @param html
142
+ * @return modifed html
143
+ */
144
+ protected String setConfiguredApiDocsUrl (String html ){
145
+ return html .replace (Constants .SWAGGER_UI_DEFAULT_URL , swaggerUiConfig .getUrl ());
146
+ }
147
+
138
148
/**
139
149
* Default transformations string.
140
150
*
@@ -167,6 +177,10 @@ else if (swaggerUiConfig.getCsrf().isUseSessionStorage())
167
177
if (swaggerUiConfig .isDisableSwaggerDefaultUrl ())
168
178
html = overwriteSwaggerDefaultUrl (html );
169
179
180
+ if (StringUtils .isNotEmpty (swaggerUiConfig .getUrl ())){
181
+ html = setConfiguredApiDocsUrl (html );
182
+ }
183
+
170
184
return html ;
171
185
}
172
186
You can’t perform that action at this time.
0 commit comments