Skip to content
This repository has been 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
ravikrn13 opened this issue Jan 4, 2021 · 0 comments
Closed

Voyager static resources not served if app context is not root #509

ravikrn13 opened this issue Jan 4, 2021 · 0 comments
Labels
Milestone

Comments

@ravikrn13
Copy link

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.

@ravikrn13 ravikrn13 added the bug label Jan 4, 2021
ravikrn13 added a commit to ravikrn13/graphql-spring-boot that referenced this issue Jan 4, 2021
@oliemansm oliemansm added this to the 11.0.0 milestone Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants