Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/42#discussion_r10642640
--- Diff: core/src/main/scala/org/apache/spark/ui/JettyUtils.scala ---
@@ -118,6 +143,13 @@ private[spark] object JettyUtils extends Logging {
contextHandler
}
+ /** Create a handler that properly redirects all requests for a static
directory */
+ def createStaticRedirectHandler(
--- End diff --
I'm finding this chain of functions that deal with redirection really
confusing. Is the idea here that we always want to load the static resources
from `/static` at the site root rather than from `/path/to/some/app/static/`?
If so then why not just modify the links we have to `/static` and not call
`prependBaseUri` when we write them in the first place?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---