{"action":"created","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678","repository_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678/events","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/678","id":312946081,"number":678,"title":"Swagger route direct with 2.4.0","user":{"login":"RomainWilbert","id":26027494,"avatar_url":"https://avatars0.githubusercontent.com/u/26027494?v=4","gravatar_id":"","url":"https://api.github.com/users/RomainWilbert","html_url":"https://github.com/RomainWilbert","followers_url":"https://api.github.com/users/RomainWilbert/followers","following_url":"https://api.github.com/users/RomainWilbert/following{/other_user}","gists_url":"https://api.github.com/users/RomainWilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/RomainWilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomainWilbert/subscriptions","organizations_url":"https://api.github.com/users/RomainWilbert/orgs","repos_url":"https://api.github.com/users/RomainWilbert/repos","events_url":"https://api.github.com/users/RomainWilbert/events{/privacy}","received_events_url":"https://api.github.com/users/RomainWilbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-04-10T14:22:50Z","updated_at":"2018-04-17T20:38:56Z","closed_at":null,"author_association":"NONE","body":"Hi ! \r\nSince 2.4.0 upgrade, When I access Swagger route (xxx/docs/rest), I am redirected to docs/docs/rest.\r\nIf I add a \"/\" at the end (xxx/docs/rest/) then it works fine. \r\nIs this normal ?\r\nHere is my config in Startup : \r\n`            // Enable middleware to serve generated Swagger as a JSON endpoint.\r\n            app.UseSwagger(c => { c.RouteTemplate = \"docs/rest/{documentName}/swagger.json\"; });\r\n\r\n            // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.), specifying the Swagger JSON endpoint.\r\n            app.UseSwaggerUI(c =>\r\n            {\r\n                c.SwaggerEndpoint(\"/docs/rest/v1/swagger.json\", \"v1\");\r\n                c.DocumentTitle = ApiName;\r\n                c.RoutePrefix = \"docs/rest\";\r\n            });`\r\n"},"comment":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/comments/382133965","html_url":"https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/678#issuecomment-382133965","issue_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle.AspNetCore/issues/678","id":382133965,"user":{"login":"domaindrivendev","id":1434343,"avatar_url":"https://avatars1.githubusercontent.com/u/1434343?v=4","gravatar_id":"","url":"https://api.github.com/users/domaindrivendev","html_url":"https://github.com/domaindrivendev","followers_url":"https://api.github.com/users/domaindrivendev/followers","following_url":"https://api.github.com/users/domaindrivendev/following{/other_user}","gists_url":"https://api.github.com/users/domaindrivendev/gists{/gist_id}","starred_url":"https://api.github.com/users/domaindrivendev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domaindrivendev/subscriptions","organizations_url":"https://api.github.com/users/domaindrivendev/orgs","repos_url":"https://api.github.com/users/domaindrivendev/repos","events_url":"https://api.github.com/users/domaindrivendev/events{/privacy}","received_events_url":"https://api.github.com/users/domaindrivendev/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T20:38:56Z","updated_at":"2018-04-17T20:38:56Z","author_association":"OWNER","body":"@RomainWilbert & @doctorless - I've just implemented a slightly different approach (see d2df21d76671eff87ce34f141f55c737249f0e28) that might help with this issue. I think it will definitely help @doctorless, not sure about @RomainWilbert because the root cause there still isn't clear to me.\r\n\r\nPerhaps you could both try the latest preview (Swashbuckle.AspNetCore.2.4.0-preview-0463) and let me know if it makes a difference?"}}
{"actor":{"display_login":"domaindrivendev"}}