Permalink
Browse files

Remove the mobile redirect and links, #6487

All these other sites and apps are depreciated for the foreseeable
future. The main site is the only access point.
  • Loading branch information...
1 parent a0c438d commit 67e9962cb8e5f435cb32cd0f2d3a10ff994815cc @GraylinKim GraylinKim committed Apr 1, 2013
Showing with 2 additions and 14 deletions.
  1. +1 −2 src/main/webapp/header.jsp
  2. +1 −12 src/main/webapp/index.jsp
@@ -74,8 +74,7 @@
<a href="http://nysenate.gov/newsroom">Newsroom</a>
</div>
<div style="float:right;">
- <a href="<%=appPath%>/feedback">Feedback</a> &nbsp;|&nbsp;
- <a href="<%=appPath%>/mobile/info">Mobile Access</a> &nbsp;|&nbsp;
+ <a href="<%=appPath%>/feedback">Feedback</a> &nbsp;|&nbsp;
<a href="http://www.nysenate.gov/developers">Developers</a>
</div>
</div>
View
@@ -12,16 +12,6 @@ if (appPath.equals("/openleg"))
return;
}
-String userAgent = request.getHeader("user-agent").toLowerCase();
-
-if (userAgent.indexOf("mobile") != -1 || userAgent.indexOf("wap") != -1 || userAgent.indexOf("blackberry")!=-1
-|| userAgent.indexOf("wml")!=-1 || userAgent.indexOf("nokia")!=-1|| userAgent.indexOf("midp")!=-1 ||userAgent.indexOf("mobi")!=-1)
- {
-
- response.sendRedirect(appPath + "/mobile");
- return;
-}
-
Bill bill = null;
String last = null;
DateFormat df = SimpleDateFormat.getDateInstance(SimpleDateFormat.MEDIUM);
@@ -72,8 +62,7 @@ if (billkey == null)
</div>
<div style="float:right;">
-<a href="<%=appPath%>/feedback">FEEDBACK</a> &nbsp;|&nbsp;
-<a href="<%=appPath%>/mobile/info">Mobile Access</a> &nbsp;|&nbsp;
+<a href="<%=appPath%>/feedback">FEEDBACK</a> &nbsp;|&nbsp;
<a href="<%=appPath%>/developers">Developers</a>
</div>
</div>

0 comments on commit 67e9962

Please sign in to comment.