Revision 24e42456
Added by Andreas Kohlbecker almost 8 years ago
cdmlib-remote-webapp/src/main/webapp/doc/webjars/springfox-swagger-ui/springfox.js | ||
---|---|---|
1 | 1 |
$(function() { |
2 | 2 |
var springfox = { |
3 | 3 |
"baseUrl": function() { |
4 |
var urlMatches = /(.*)\/doc\/index.html.*/.exec(window.location.href);
|
|
4 |
var urlMatches = /(.*)\/doc\/.*/.exec(window.location.href);
|
|
5 | 5 |
return urlMatches[1]; |
6 | 6 |
}, |
7 | 7 |
"securityConfig": function(cb) { |
Also available in: Unified diff
#5730 base url detection fixed