aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-29 12:03:58 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-12-07 14:36:18 +0100
commit65bf2d0dea8e5b2ca27a53ad668d77b4e2ded44b (patch)
treebed91e6568bffbc411ff05565bffdee30b68dcf0 /server/sonar-web
parent673b03c6f68593f4e27675e709f2ce20831e0d98 (diff)
downloadsonarqube-65bf2d0dea8e5b2ca27a53ad668d77b4e2ded44b.tar.gz
sonarqube-65bf2d0dea8e5b2ca27a53ad668d77b4e2ded44b.zip
SONAR-8448 Provide a unique HTML page for every url except statics files and WS
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/public/index.html5
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/web.xml8
2 files changed, 11 insertions, 2 deletions
diff --git a/server/sonar-web/public/index.html b/server/sonar-web/public/index.html
index 0864aeb17d2..cf8fd6ce5a4 100644
--- a/server/sonar-web/public/index.html
+++ b/server/sonar-web/public/index.html
@@ -1,7 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <meta charset="UTF-8">
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" charset="UTF-8"/>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="%WEB_CONTEXT%/favicon.ico" rel="shortcut icon" type="image/x-icon">
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet">
@@ -15,4 +16,4 @@
<script src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>
<% } %>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/web.xml b/server/sonar-web/src/main/webapp/WEB-INF/web.xml
index 865206d2030..5786dff2edb 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/web.xml
+++ b/server/sonar-web/src/main/webapp/WEB-INF/web.xml
@@ -64,6 +64,10 @@
<filter-name>RequestUidFilter</filter-name>
<filter-class>org.sonar.server.platform.web.requestid.RequestIdFilter</filter-class>
</filter>
+ <filter>
+ <filter-name>WebPagesFilter</filter-name>
+ <filter-class>org.sonar.server.platform.web.WebPagesFilter</filter-class>
+ </filter>
<!-- order of execution is important -->
<filter-mapping>
@@ -91,6 +95,10 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
+ <filter-name>WebPagesFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
<filter-name>RackFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>