fixed apostrophe encoded error and removed 500 page as not needed
This commit is contained in:
@@ -49,8 +49,8 @@ export default function PrivacyCY() {
|
|||||||
How we process any personal information including
|
How we process any personal information including
|
||||||
special category data you have voluntarily provided to
|
special category data you have voluntarily provided to
|
||||||
us relating directly to you or any other third-party
|
us relating directly to you or any other third-party
|
||||||
individual's information you may have provided relating
|
individual's information you may have provided
|
||||||
to PEDW casework.
|
relating to PEDW casework.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Planning and Environment Decisions Wales handle a
|
Planning and Environment Decisions Wales handle a
|
||||||
@@ -207,7 +207,7 @@ export default function PrivacyCY() {
|
|||||||
link:
|
link:
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Information Commissioner's Office <br />
|
Information Commissioner's Office <br />
|
||||||
1 Wycliffe House
|
1 Wycliffe House
|
||||||
<br />
|
<br />
|
||||||
Water Lane, Wilmslow <br />
|
Water Lane, Wilmslow <br />
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ export default function PrivacyEN() {
|
|||||||
How we process any personal information including
|
How we process any personal information including
|
||||||
special category data you have voluntarily provided to
|
special category data you have voluntarily provided to
|
||||||
us relating directly to you or any other third-party
|
us relating directly to you or any other third-party
|
||||||
individual's information you may have provided relating
|
individual's information you may have provided
|
||||||
to PEDW casework.
|
relating to PEDW casework.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Planning and Environment Decisions Wales handle a
|
Planning and Environment Decisions Wales handle a
|
||||||
@@ -207,7 +207,7 @@ export default function PrivacyEN() {
|
|||||||
link:
|
link:
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Information Commissioner's Office <br />
|
Information Commissioner's Office <br />
|
||||||
1 Wycliffe House
|
1 Wycliffe House
|
||||||
<br />
|
<br />
|
||||||
Water Lane, Wilmslow <br />
|
Water Lane, Wilmslow <br />
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
import Link from "next/link";
|
|
||||||
import Head from "next/head";
|
|
||||||
import Header from "../components/header";
|
|
||||||
import Banner from "../components/banner";
|
|
||||||
import CookieBanner from "../components/cookieBanner";
|
|
||||||
import useTranslation from "next-translate/useTranslation";
|
|
||||||
import Footer from "../components/footer";
|
|
||||||
|
|
||||||
function Error({ statusCode }, props) {
|
|
||||||
let { t, lang } = useTranslation();
|
|
||||||
const { footerLinks, pages } = props;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<Head>
|
|
||||||
<title>
|
|
||||||
{t("case:page-title")} - {t("common:service-name")}
|
|
||||||
</title>
|
|
||||||
</Head>
|
|
||||||
<div id="page_wrapper">
|
|
||||||
<CookieBanner />
|
|
||||||
<Header courseName={t("common:service-name")} />
|
|
||||||
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
|
||||||
<main className="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
|
||||||
<div className="govuk-grid-row">
|
|
||||||
<div className="govuk-grid-column-two-thirds ">
|
|
||||||
<h1>{t("common:error-page-title")}</h1>
|
|
||||||
<p className="govuk-body">
|
|
||||||
{statusCode
|
|
||||||
? `An error ${statusCode} occurred on server`
|
|
||||||
: t("common:error-page-message")}
|
|
||||||
</p>
|
|
||||||
<Link href="/">
|
|
||||||
<a>Go back home</a>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
<Footer footerLinks={footerLinks} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Error.getInitialProps = ({ res, err }) => {
|
|
||||||
const statusCode = res ? res.statusCode : err ? err.statusCode : 404;
|
|
||||||
console.log(res, err);
|
|
||||||
return { statusCode };
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Error;
|
|
||||||
Reference in New Issue
Block a user