Bugfix doc link chrome by julienFL
<%
String url = request.getParameter("url");
String baseUrl = url.substring(0, url.lastIndexOf("/") + 1);
+String browser = request.getHeader("user-agent");
if(baseUrl.startsWith("file:")) {
String filename = url.substring(url.lastIndexOf("/") + 1);
filename = URLEncoder.encode(filename, StandardCharsets.UTF_8.name()).replaceAll("\\+", "%20");
url = baseUrl + filename;
}
+if(!browser.toLowerCase().contains("chrome") || baseUrl.startsWith("http")) {
+ response.sendRedirect(url);
+}
%>
-<meta http-equiv="refresh" content="0;URL='<%= url %>'">
</head>
<body>
+ <a href="<%=url%>">Link to doc</a>
</body>
</html>
