Skip to content
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
@ravikrn13

Description

@ravikrn13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions