Skip to content

Commit 8ad3b73

Browse files
author
Scott Straughan
committed
Fixed some small UX issues relaxing to error handling.
1 parent f179827 commit 8ad3b73

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

src/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html lang="en">
33
<head>
44
<title>SYCL.tech - 404</title>
5-
<meta http-equiv="refresh" content="0; url=/404">
6-
<script type="text/javascript">window.location.href = "/404"</script>
5+
<meta http-equiv="refresh" content="0; url=/e404">
6+
<script type="text/javascript">window.location.href = "/e404"</script>
77
<link rel="icon" type="image/png" href="favicon.png"/>
88
</head>
99
<body></body>

src/app/app.routes.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,15 @@ export const routes: Routes = [
116116
component: ContributorComponent
117117
},
118118
{
119-
path: '404',
120-
component: Error404Component,
121-
pathMatch: 'full'
119+
path: 'learn',
120+
redirectTo: 'getting-started'
121+
},
122+
{
123+
path: 'e404',
124+
component: Error404Component
122125
},
123126
{
124127
path: '**',
125-
redirectTo: '404'
128+
redirectTo: 'e404'
126129
}
127130
];

src/app/pages/404/error-404.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ <h2>This page seems to have gone missing. We're sorry about that! Please check b
1111
<span class="material-symbols-outlined panel-icon">search_off</span>
1212
</div>
1313
</div>
14-
</section>
14+
</section>

src/app/pages/ecosystem/research/shared/research-widget/research-widget.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="widget">
55
<a [href]="research.url" target="_blank" rel="noopener">
66
<div class="header">
7-
2029
7+
{{ research.date | date: "y" }}
88
</div>
99
<div class="title">
1010
<h1 [innerHTML]="research.title"></h1>

0 commit comments

Comments
 (0)