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

[2.3.x] Add root path for Quinoa Web UI #696

Merged
merged 6 commits into from
Jun 17, 2024
Merged

Conversation

liquidnya
Copy link
Contributor

Describe your changes

This is a back-port of #691 to the 2.3.x branch.
Note that if the quarkus.quinoa.ui-root-path=/foo is set, then http://localhost:8080/foo redirects to http://localhost:8080/foo/ to serve the index.html file in production mode.
This happens, because in production mode io.vertx.ext.web.handler.StaticHandler is used to serve files which already implements this behavior.

Fixes Issue

Fixes #302

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.

This adds the quarkus.quinoa.ui-root-path property which is the path for hosting the Web UI.
The quarkus.quinoa.ignored-path-prefixes property is always relative to quarkus.quinoa.ui-root-path.
The quarkus.http.non-application-root-path is not added to the default ignores if it is not relative to quarkus.http.root-path.
@liquidnya liquidnya mentioned this pull request Jun 17, 2024
4 tasks
@melloware melloware added the enhancement New feature or request label Jun 17, 2024
@melloware
Copy link
Contributor

I will wait for @ia3andy review and once its all done I will cut a 2.3.X release with your great fix!

@ia3andy
Copy link
Collaborator

ia3andy commented Jun 17, 2024

I will not have time today, if you tested it @melloware I approve the code part

@melloware melloware added this to the 2.3.9 milestone Jun 17, 2024
@melloware melloware merged commit 137b372 into quarkiverse:2.3.x Jun 17, 2024
2 checks passed
@ia3andy
Copy link
Collaborator

ia3andy commented Jun 18, 2024

@liquidnya congratulation for getting this in, this is a very nice contribution and thank you 🚀🎉

@ia3andy
Copy link
Collaborator

ia3andy commented Jun 18, 2024

@liquidnya would you care to join the quarkus zulip?

@melloware
Copy link
Contributor

I tried to cut a release of 2.3 but it failed for Quarkus invalid token which Max is fixing I will try again today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants