revert: remove language routing (was breaking navigation)

- Reverted app.routes.ts to original simple routing
- Removed language guard
- Language routing needs more comprehensive implementation
This commit is contained in:
sdarbinyan
2026-01-22 23:31:14 +04:00
parent cb895f68cd
commit c0ca8cdf2d
2 changed files with 2 additions and 76 deletions

View File

@@ -1,8 +1,6 @@
import { Routes } from '@angular/router';
import { languageGuard } from './guards/language.guard';
// Child routes without language prefix
const childRoutes: Routes = [
export const routes: Routes = [
{
path: '',
loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent)
@@ -66,25 +64,9 @@ const childRoutes: Routes = [
{
path: 'guarantee',
loadComponent: () => import('./pages/info/guarantee/guarantee.component').then(m => m.GuaranteeComponent)
}
];
export const routes: Routes = [
// Routes with language prefix: /ru, /en, /hy
{
path: ':lang',
canActivate: [languageGuard],
children: childRoutes
},
// Redirect root to default language
{
path: '',
pathMatch: 'full',
redirectTo: 'ru'
},
// Catch-all: redirect unknown routes to home with default language
{
path: '**',
redirectTo: 'ru'
redirectTo: ''
}
];