Skip to content

Commit

Permalink
fix: routing to article pages
Browse files Browse the repository at this point in the history
  • Loading branch information
markblandford committed Nov 5, 2023
1 parent c9273f4 commit 69259b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
} from './pages';

const routes: Routes = [
{ path: 'article-list', title: 'Blandford.dev - articles', component: ArticlesComponent, data: [ { heading: 'Articles' } ] },
{ path: 'articles/:id', component: RenderArticleComponent },
{ path: 'articles', title: 'Blandford.dev - articles', component: ArticlesComponent, data: [ { heading: 'Articles' } ] },
{ path: '', title: 'Blandford.dev - home', component: HomeComponent, data: [ { heading: 'Blandford.dev' } ] },
{ path: '**', redirectTo: '/', pathMatch: 'full' }
];
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/navigation/navigation.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</a>
<a
class="nav__link"
routerLink="/articles"
routerLink="/article-list"
routerLinkActive="nav__link--active">
<fa-icon [icon]="articlesIcon" title="Articles"></fa-icon>
<span class="nav__text">Articles</span>
Expand Down

0 comments on commit 69259b0

Please sign in to comment.