Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting root path starting with /dev breaks the dev-ui #42022

Closed
Malandril opened this issue Jul 20, 2024 · 1 comment · Fixed by #42026
Closed

Setting root path starting with /dev breaks the dev-ui #42022

Malandril opened this issue Jul 20, 2024 · 1 comment · Fixed by #42026
Assignees
Labels
area/dev-ui kind/bug Something isn't working
Milestone

Comments

@Malandril
Copy link
Contributor

Malandril commented Jul 20, 2024

Describe the bug

When setting a root path for the application with quarkus.http.root-path or for quarkus.http.non-application-root-path that is starting with /dev it breaks the dev-ui.

For example setting it to /devil breaks the ui.

It doesn't redirect to the expected urls, and redirects them to /dev-ui.

It seems to be caused when the ui tries to get the basePath such as here for example

return base.substring(0, base.indexOf('/dev')) + "/dev-ui";

Maybe it is some legacy behaviour from V1 dev ui path ?

How to Reproduce?

Create a quarkus app with vertx http, then add a root path containing dev, and run the dev mode

quarkus create app -x 'quarkus-rest' quarkus-dev-redirect -P 3.12.3
cd  quarkus-dev-redirect
quarkus dev -Dquarkus.http.non-application-root-path=/devil/q

When connecting to the dev ui on http://localhost:8080/devil/q/dev-ui it will redirect you to http://localhost:8080/dev-ui/extensions .

Quarkus version or git rev

3.12.3

@Malandril Malandril added the kind/bug Something isn't working label Jul 20, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 20, 2024

/cc @cescoffier (devui), @phillip-kruger (devui)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-ui kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants