Skip to content

Commit

Permalink
Insure the default route is /home (#1121) (#1126)
Browse files Browse the repository at this point in the history
(cherry picked from commit 511d7db)
  • Loading branch information
Chris Houseknecht authored Sep 4, 2018
1 parent 823d8ab commit ec30af4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions galaxyui/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ import { NamespaceDetailResolver, RepositoryResolver as AuthorRepositoryResolver
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const appRoutes: Routes = [
{
path: '',
redirectTo: '/home',
pathMatch: 'full',
},

// Lazily loaded modules
{
path: 'search',
Expand Down
8 changes: 8 additions & 0 deletions galaxyui/src/app/home/home.routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ import { HomeComponent } from './home.component';
import { ContentBlockResolver, VendorListResolver } from './home.resolver.service';

const homeRoutes: Routes = [
{
path: '',
component: HomeComponent,
resolve: {
vendors: VendorListResolver,
contentBlocks: ContentBlockResolver,
},
},
{
path: 'home',
component: HomeComponent,
Expand Down

0 comments on commit ec30af4

Please sign in to comment.