diff --git a/src/core/index.js b/src/core/index.js index 6cb29a30142..bf684426ce0 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -36,7 +36,7 @@ export default function SwaggerUI(opts) { maxDisplayedTags: null, filter: null, validatorUrl: "https://validator.swagger.io/validator", - oauth2RedirectUrl: `${window.location.protocol}//${window.location.host}${window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'))}/oauth2-redirect.html`, + oauth2RedirectUrl: `${window.location.protocol}//${window.location.host}${window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`, persistAuthorization: false, configs: {}, custom: {},