NIFI-5097 This closes #2647. add client-side HTTP redirect to error index.jsp

Existing web error index page suggests user may have meant /nifi/ and crafts a contextPath link, may as well redirect them automatically. Non-human (i.e. curl/wget) can still retrieve the original source without being redirected.

Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
Alex Moundalexis 2018-04-19 10:17:23 -04:00 committed by joewitt
parent 090e748726
commit af12923da4

View File

@ -32,6 +32,7 @@
<link rel="stylesheet" href="<%= contextPath %>/nifi/assets/font-awesome/css/font-awesome.min.css" type="text/css"/>
<link rel="stylesheet" href="<%= contextPath %>/nifi/css/message-pane.css" type="text/css"/>
<link rel="stylesheet" href="<%= contextPath %>/nifi/css/message-page.css" type="text/css"/>
<meta http-equiv="Refresh" content="5; url=<%= contextPath %>/nifi/">
</head>
<body class="message-pane">
@ -39,7 +40,7 @@
<p class="message-pane-title">
Did you mean: <a href="<%= contextPath %>/nifi/">/nifi</a>
</p>
<p class="message-pane-content">You may have mistyped...</p>
<p class="message-pane-content">You may have mistyped... but we'll try to redirect you in 5 seconds.</p>
</div>
</body>
</html>