OSDN Git Service

Improve http status 404 notifications.
authorKeith Marshall <keith@users.osdn.me>
Tue, 3 Nov 2020 11:11:52 +0000 (11:11 +0000)
committerKeith Marshall <keith@users.osdn.me>
Tue, 3 Nov 2020 11:11:52 +0000 (11:11 +0000)
* missing.html (page-subtitle): Add <dt> entry.
(page-content): Wording enhancements; suggest filing of feature
request for missing page, as identified by dynamic content of...
(e404-missing-page): ...this named <span> element.

* site.js (load_content) [e404-missing-page]: Assign URL.

missing.html
site.js

index 2fb995b..4cd5e4f 100644 (file)
@@ -44,7 +44,8 @@
  * HTML entity codes:
  *
  *    &#8209;  non-breaking hyphen
- *    &#8217;  typographic apostrophe
+ *    &#8220;   left (opening) typographic double quote
+ *    &#8221;   right (closing) typographic double quote
  *
 -->
 <dl class="masthead"><!-- hidden for masthead class -->
  their content into the corresponding visible place-holders.
 -->
  <dt id="page-title">MinGW.org Server Error</dt>
+ <dt id="page-subtitle">HTTP Status 404 &mdash; Requested Page Not Found</dt>
 </dl><!-- masthead -->
-<h2>Page Not Found</h2>
+<p>The requested URL,
+&#8220;<span id="e404-missing-page"></span>&#8221;,
+cannot be resolved.
+</p>
 <p>The MinGW.org web&#8209;site is undergoing an overhaul,
 whilst in the process of transferring to a new hosting provider.
 During this transitional phase,
 some pages may be temporarily unavailable.
 </p>
-<p>If you see this page,
+<p>If you see this notification page,
 it is likely that the content you are trying to access
 has not yet been transferred;
-please check back later.
+please check back later,
+or file a feature request for a priority review,
+(but please leave the actual priority assignment to
+the discretion of the project administrators).
 </p>
 
 <!-- $RCSfile$: end of file -->
diff --git a/site.js b/site.js
index 4c8cee2..1a7c368 100644 (file)
--- a/site.js
+++ b/site.js
@@ -72,6 +72,7 @@ function load_content( container, src )
          set_content( container, this.responseText );
          update_page_content_header( "title" );
          update_page_content_header( "subtitle" );
+         set_content( "e404-missing-page", document.URL );
          break;
        case 404:
          load_content( container, "missing.html" );