Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Oct 24, 2023
1 parent 28d045e commit a6dda75
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ class KyuubiRestFrontendService(override val serverable: Serverable)
}

private def installWebUI(): Unit = {
// redirect root path to Web UI home page
server.addRedirectHandler("/", "/ui")

val servletHandler = JettyUtils.createStaticHandler("dist", "/ui")
// HTML5 Web History Mode requires redirect any url path under Web UI Servlet to the main page.
// See more details at https://router.vuejs.org/guide/essentials/history-mode.html#html5-mode
val errorHandler = new ErrorPageErrorHandler
errorHandler.addErrorPage(404, "/")
servletHandler.setErrorHandler(errorHandler)
server.addHandler(servletHandler)
// The legacy Web UI under "/", redirect it to new UI for convenient
server.addRedirectHandler("/", "/ui")
}

private def startBatchChecker(): Unit = {
Expand Down

0 comments on commit a6dda75

Please sign in to comment.