From: Keith Marshall Date: Tue, 3 Nov 2020 11:11:52 +0000 (+0000) Subject: Improve http status 404 notifications. X-Git-Url: http://git.osdn.net/view?p=mingw%2Fwebsite.git;a=commitdiff_plain;h=98be686d2e65698f502c6ab4521bc0535216d7e1 Improve http status 404 notifications. * missing.html (page-subtitle): Add
entry. (page-content): Wording enhancements; suggest filing of feature request for missing page, as identified by dynamic content of... (e404-missing-page): ...this named element. * site.js (load_content) [e404-missing-page]: Assign URL. --- diff --git a/missing.html b/missing.html index 2fb995b..4cd5e4f 100644 --- a/missing.html +++ b/missing.html @@ -44,7 +44,8 @@ * HTML entity codes: * * ‑ non-breaking hyphen - * ’ typographic apostrophe + * “ left (opening) typographic double quote + * ” right (closing) typographic double quote * -->
@@ -55,17 +56,24 @@ their content into the corresponding visible place-holders. -->
MinGW.org Server Error
+
HTTP Status 404 — Requested Page Not Found
-

Page Not Found

+

The requested URL, +“”, +cannot be resolved. +

The MinGW.org web‑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.

-

If you see this page, +

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).

diff --git a/site.js b/site.js index 4c8cee2..1a7c368 100644 --- 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" );