mirror of
https://github.com/apache/nifi.git
synced 2025-02-10 12:05:22 +00:00
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:
parent
090e748726
commit
af12923da4
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user