Skip to content

Commit b84edbf

Browse files
committed
refactor: flatten route structure, update redirect rules, and add canonical link tag
1 parent 64ac2cc commit b84edbf

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/ /ngx-theme-stack/toggle 301
2-
/* /index.csr.html 200
1+
/* /index.csr 200

projects/demo-ngx-theme-stack/src/app/app.routes.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ThemeSceneComponent } from './layouts/theme-scene/theme-scene';
33

44
export const routes: Routes = [
55
{
6-
path: 'ngx-theme-stack',
6+
path: '',
77
component: ThemeSceneComponent,
88
children: [
99
{
@@ -22,9 +22,7 @@ export const routes: Routes = [
2222
loadComponent: () => import('./views/select-view/select-view'),
2323
},
2424
{ path: '', redirectTo: 'toggle', pathMatch: 'full' },
25-
{ path: '**', redirectTo: 'toggle' },
2625
],
2726
},
28-
{ path: '', redirectTo: 'ngx-theme-stack', pathMatch: 'full' },
29-
{ path: '**', redirectTo: 'ngx-theme-stack' },
27+
{ path: '**', redirectTo: '' },
3028
];

projects/demo-ngx-theme-stack/src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<meta charset="utf-8" />
2323
<title>ngx-theme-stack — Powerful Angular Theme Management</title>
2424
<base href="/" />
25+
<link rel="canonical" href="https://demo-ngx-theme-stack.wanderlee.site/" />
2526
<meta name="viewport" content="width=device-width, initial-scale=1" />
2627

2728
<!-- SEO & Open Graph -->

0 commit comments

Comments
 (0)