Redirect fix

This commit is contained in:
Yiğit FINDIKLI 2021-12-24 16:03:21 +03:00
parent 7bcda38897
commit f0d0c39e2e
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ import {FormLayoutDemoComponent} from './demo/view/formlayoutdemo.component';
import {PanelsDemoComponent} from './demo/view/panelsdemo.component'; import {PanelsDemoComponent} from './demo/view/panelsdemo.component';
import {OverlaysDemoComponent} from './demo/view/overlaysdemo.component'; import {OverlaysDemoComponent} from './demo/view/overlaysdemo.component';
import {MediaDemoComponent} from './demo/view/mediademo.component'; import {MediaDemoComponent} from './demo/view/mediademo.component';
import {MenusDemoComponent} from './demo/view/menusdemo.component';
import {MessagesDemoComponent} from './demo/view/messagesdemo.component'; import {MessagesDemoComponent} from './demo/view/messagesdemo.component';
import {MiscDemoComponent} from './demo/view/miscdemo.component'; import {MiscDemoComponent} from './demo/view/miscdemo.component';
import {EmptyDemoComponent} from './demo/view/emptydemo.component'; import {EmptyDemoComponent} from './demo/view/emptydemo.component';
@ -55,7 +54,7 @@ import {IconsDemoComponent} from './demo/view/iconsdemo.component';
{path: 'documentation', component: DocumentationComponent} {path: 'documentation', component: DocumentationComponent}
] ]
}, },
{path: '**', redirectTo: '/notfound'}, {path: '**', redirectTo: 'pages/empty'},
], {scrollPositionRestoration: 'enabled'}) ], {scrollPositionRestoration: 'enabled'})
], ],
exports: [RouterModule] exports: [RouterModule]

View File

@ -84,7 +84,7 @@ import {ToggleButtonModule} from 'primeng/togglebutton';
import {ToolbarModule} from 'primeng/toolbar'; import {ToolbarModule} from 'primeng/toolbar';
import {TooltipModule} from 'primeng/tooltip'; import {TooltipModule} from 'primeng/tooltip';
import {TreeModule} from 'primeng/tree'; import {TreeModule} from 'primeng/tree';
import {TreeSelect, TreeSelectModule} from 'primeng/treeselect'; import {TreeSelectModule} from 'primeng/treeselect';
import {TreeTableModule} from 'primeng/treetable'; import {TreeTableModule} from 'primeng/treetable';
import {VirtualScrollerModule} from 'primeng/virtualscroller'; import {VirtualScrollerModule} from 'primeng/virtualscroller';
import {BlockViewer} from './app.blockviewer.component' import {BlockViewer} from './app.blockviewer.component'