From d93a93533ca9fb6209508aa9696de425b11450e9 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Thu, 14 Jun 2012 18:47:30 +0100
Subject: [PATCH] Prevent the "unknown path" console message from being
 displayed on the "/tos", "/privacy", and "/about" pages.

issue #1518
---
 resources/static/pages/start.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/resources/static/pages/start.js b/resources/static/pages/start.js
index f6bb1b258..82b72c8c9 100644
--- a/resources/static/pages/start.js
+++ b/resources/static/pages/start.js
@@ -151,6 +151,10 @@ $(function() {
         verifyFunction: "verifyUser"
       });
     }
+    else if(path === "/about" || path === "/tos" || path === "/privacy") {
+      // do nothing.  This prevents "unknown path" from being displayed to the
+      // user.
+    }
     else {
       // Instead of throwing a hard error here, adding a message to the console
       // to let developers know something is up.
-- 
GitLab