elide-spring-boot-example icon indicating copy to clipboard operation
elide-spring-boot-example copied to clipboard

Changing the `server.servlet.context-path` property breaks the Swagger and Graphiql UIs

Open lewimuchiri opened this issue 2 years ago • 1 comments

The Swagger and Graphiql UIs work well when the server.servlet.context-path is not set. But when that property is set, such that the context path becomes anything other than '/', all of a sudden the Swagger and Graphiql UIs start breaking

image

lewimuchiri avatar Feb 24 '23 11:02 lewimuchiri

Temporary workaround for this is to manually change the urls in index.html files under "META-INF/resources", "META-INF/resources/graphiql" and "META-INF/resources/swagger" to prefix them with the context path

lewimuchiri avatar Feb 28 '23 11:02 lewimuchiri