Skip to content

Commit 85bff2a

Browse files
committed
hotfix deploy and routes
1 parent 2b2517d commit 85bff2a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
passphrase: ${{ secrets.SSH_PASSPHRASE }}
3838
script: |
3939
docker pull sachawildcode/projet-poec:latest &&
40-
docker-compose up -d --force-recreate
40+
docker compose up -d --force-recreate

src/app/app.routes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export const routes: Routes = [
1818
},
1919
],*/
2020
},
21-
{ path: 'home', component: LandingPageComponent },
21+
{ path: '', component: LandingPageComponent },
2222
{ path: 'faq', component: FaqPageComponent },
2323
{ path: 'asso', component: AssoPageComponent },
2424
{ path: 'transparency', component: TransparencyPageComponent },
2525
{ path: 'profile', component: UserPageComponent },
26-
{ path: '**', redirectTo: 'home' },
26+
{ path: '**', redirectTo: '' },
2727
];

src/app/components/navbar/navbar.component.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<section><h1>HeartLink</h1></section>
44
<section>
55
<ul>
6-
<li><a [routerLink]="['/home']" [routerLinkActive]="['is-active']">Accueil</a></li>
6+
<li>
7+
<a [routerLink]="['']" [routerLinkActive]="['is-active']" [routerLinkActiveOptions]="{ exact: true }"
8+
>Accueil</a
9+
>
10+
</li>
711
<li><a [routerLink]="['/asso']" [routerLinkActive]="['is-active']">Association</a></li>
812
<li><a [routerLink]="['/faq']" [routerLinkActive]="['is-active']">FAQ</a></li>
913
<li><a [routerLink]="['/transparency']" [routerLinkActive]="['is-active']">Transparence</a></li>

0 commit comments

Comments
 (0)