Commit 1a4d98fd authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

Change home path to /

parent 24e49548
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './editorialisation/components';
import { AppRoutes } from './routes';
export const routes: Routes = [
{
path: '',
component: HomeComponent,
},
{
path: '**',
redirectTo: AppRoutes.page404.uri,
......
......@@ -9,7 +9,7 @@
</div>
</div>
<div class="navbar-header-item logo-data">
<a [routerLink]="['/', AppRoutes.home.uri]" *ngIf="!isHomePage">
<a [routerLink]="['']" *ngIf="!isHomePage">
<img class="logo-data-beta is-hidden-mobile" src="./assets/img/header_logo_data.svg"
alt="Return to homepage" i18n-alt="@@header.returnHome">
<img class="is-hidden-tablet" src="./assets/img/header_logo_data_mobile.svg"
......
......@@ -3,7 +3,7 @@
<nav class="menu-list">
<ul class="menu-list">
<li>
<a [routerLink]="['/', AppRoutes.home.uri]" routerLinkActive="active-link"
<a [routerLink]="['/']" routerLinkActive="active-link"
[routerLinkActiveOptions]="{ exact: true }" [tabIndex]="isOpened ? 0 : -1">
<div class="icon-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23">
......@@ -16,7 +16,7 @@
</a>
</li>
<li>
<a [routerLink]="['/', AppRoutes.research.uri]" routerLinkActive="active-link" [tabIndex]="isOpened ? 0 : -1">
<a [routerLink]="['/', AppRoutes.datasets.uri]" routerLinkActive="active-link" [tabIndex]="isOpened ? 0 : -1">
<div class="icon-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23">
<path class="main" fill-rule="evenodd"
......
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from '../editorialisation/components';
import { AppRoutes } from '../routes';
import { ContactComponent } from './components';
import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component';
......@@ -7,8 +8,7 @@ import { PageNotFoundComponent } from './components/page-not-found/page-not-foun
export const routes: Routes = [
{
path: '',
redirectTo: AppRoutes.home.uri,
pathMatch: 'full',
component: HomeComponent,
},
{
path: AppRoutes.page404.uri,
......
......@@ -78,7 +78,7 @@ export const AppRoutes = {
},
},
home: {
uri: 'accueil',
uri: '',
title: {
fr: 'Accueil',
en: 'Home',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment