This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Voyager static resources not served if app context is not root #509
Closed
Description
Describe the bug
When the application has a context different than root Voyager fails to start because its static resources are not found 404. This is because the HTML is configured as they were always in the root directory which is not the case.
Setting "voyager.static.basePath" has no effect.
To Reproduce
- Define a context for your application (eg. "abc")
- configure your context-path accordingly (server.servlet.context-path=/abc)
- start your application
- navigate to voyager (http://localhost:8080/abc/voyager
- start your application and specify a context: -Dserver.servlet.context-path=<your_context>
- navigate to http://localhost:8080/abc/voyager
Expected behavior
voyager.static.basePath should be read from application.yml to read the application context.
This issue was earlier reported and fixed #125 but is re-appearing in newer versions.