Skip to content

Commit

Permalink
Insert the correct code
Browse files Browse the repository at this point in the history
  • Loading branch information
ptruessel committed Dec 19, 2024
1 parent 9a18f62 commit 0df48f7
Showing 1 changed file with 40 additions and 49 deletions.
89 changes: 40 additions & 49 deletions www/frontend/custom_theme/templates/error/404.cfm
Original file line number Diff line number Diff line change
@@ -1,51 +1,42 @@
<cfheader statuscode="404" statustext="Not Found">
<cfheader statuscode="404" statustext="File Not Found">
<cfheader name="Connection" value="Close">




<!--- <!doctype html>
<html>
<cfoutput>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>File Not Found</title>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta17/dist/css/tabler.min.css" />
</head>
<cfparam name="darkTheme" default="">
<cfif getLayout.layoutBody neq "">
<cfset darkTheme = "theme-dark">
</cfif>
<body class="d-flex flex-column #darkTheme#">
<div class="page page-center">
<div class="container-tight py-4">
<div class="empty">
<div class="empty-header">404</div>
<p class="empty-title">Oops…</p>
<p class="empty-subtitle text-muted">
#application.objLanguage.getTrans('txtTechInform')#
</p>
<div class="empty-action">
<cfif structKeyExists(session, "customer_id")>
<a href="./dashboard" class="btn btn-primary">
#application.objLanguage.getTrans('txtTakeBack')#
</a>
<cfelse>
<a href="./" class="btn btn-primary">
#application.objLanguage.getTrans('txtTakeBack')#
</a>
</cfif>
</div>
</div>
</div>
</div>
</body>
</cfoutput>
</html> --->
<cfif structKeyExists(session, "customer_id")>
<cfset takeMeBackURL = "/dashboard">
<cfelse>
<cfset takeMeBackURL = application.mainURL>
</cfif>

<!DOCTYPE html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>
<cfinclude template="../../css/css-include.cfm">
</head>

<body>

<cfoutput>
<div class="px-4 py-5 my-5 text-center">
<h1 class="display-5 fw-bold text-body-emphasis mb-4">404</h1>
<div class="col-lg-4 mx-auto">
<p class="lead mb-4">#getTrans('txt404Text')#</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="#takeMeBackURL#" type="button" class="btn btn-secondary btn-lg px-4 gap-3">#getTrans('txtTakeBack')#</a>
</div>
</div>
</div>
</cfoutput>

</body>

</body>
</html>


<script>
if (window.location.pathname !== "/404") {
history.replaceState({}, "Page Not Found", "/404");
}
</script>

0 comments on commit 0df48f7

Please sign in to comment.