Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/11845#discussion_r57082964
--- Diff: core/src/main/scala/org/apache/spark/ui/UIUtils.scala ---
@@ -445,22 +445,36 @@ private[spark] object UIUtils extends Logging {
"Links in job descriptions must be root-relative:\n" +
allLinks.mkString("\n\t"))
}
- // Prepend the relative links with basePathUri
- val rule = new RewriteRule() {
- override def transform(n: Node): Seq[Node] = {
- n match {
- case e: Elem if e \ "@href" nonEmpty =>
- val relativePath = e.attribute("href").get.toString
- val fullUri =
s"${basePathUri.stripSuffix("/")}/${relativePath.stripPrefix("/")}"
- e % Attribute(null, "href", fullUri, Null)
- case _ => n
+ val rule = if (plainText) {
--- End diff --
style:
```
val rule =
if (plainText) {
...
} else {
...
}
```
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]