(new URL("oauth2-redirect.html", window.location.href)).href;

        // Apply mandatory parameters
        configObject.dom_id = "#swagger-ui";
        configObject.presets = [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset, HideEmptyTagsPlugin];
        configObject.layout = "StandaloneLayout";

        // Parse and add interceptor functions
        var interceptors = JSON.parse('%(Interceptors)');
        if (interceptors.RequestInterceptorFunction)
            configObject.requestInterceptor = 