diff --git a/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala b/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala
index f8ac682dbf4d27592bc5d933c43cc17ee991f180..676de231f0bf49072661eb3bad080468b4b1b26f 100644
--- a/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala
+++ b/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala
@@ -130,8 +130,7 @@ class WorkerWebUI(val worker: Worker, val workDir: File, requestedPort: Option[I
           </div>
         </body>
       </html>
-    UIUtils.basicSparkPage(content, request.getParameter("logType") + " log page for " +
-      request.getParameter("appId"))
+    UIUtils.basicSparkPage(content, logType + " log page for " + appId)
   }
 
   def stop() {