Skip to content

Commit e485de5

Browse files
Merge pull request #93 from digipolisantwerp/bugfix/reload-404-fix
fix(core): Fixed the GH Pages hack to redirect to the 'right' root
2 parents ce7148d + b872c63 commit e485de5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

styleguide/404.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Acpaas UI | Angular Modules</title>
6+
<link rel="icon" type="image/x-icon" href="favicon.ico">
67
<script>
78
// Store the URL the user was trying to access when receiving the 404.
89
sessionStorage.redirect = location.href;
910
</script>
1011

1112
<!-- Immediately redirect to the base URL so we can use the SPA routing. -->
12-
<meta http-equiv="refresh" content="0;URL='/'"></meta>
13+
<meta http-equiv="refresh" content="0;URL='/acpaas-ui_angular'"></meta>
1314
</head>
1415
<body>
1516
<!-- IE required at least 512 bytes of data to show non-default 404. -->

styleguide/app/routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { NotFoundPageComponent } from './pages/not-found/not-found.page';
44

55
export const ROUTES: Routes = [
66
{
7-
path: '', redirectTo: '/modules/avatar', pathMatch: 'full',
7+
path: '', redirectTo: '/modules/analytics', pathMatch: 'full',
88
},
99
{
1010
path: 'not-found', component: NotFoundPageComponent,

styleguide/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
<guide-root></guide-root>
3434

35+
<!-- In order to make the GitHub Pages hack work (see above), make sure it loads before all other scripts -->
3536
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js"></script>
3637
<script src="https://cdn.ckeditor.com/4.6.2/standard/ckeditor.js"></script>
3738
</body>

0 commit comments

Comments
 (0)