SEO/AEO, Farb schema, breadcrumbs
This commit is contained in:
@@ -23,6 +23,8 @@ import { EmailUsComponent } from './pages/subscription/email-us/email-us.compone
|
||||
import { FavoritesComponent } from './pages/subscription/favorites/favorites.component';
|
||||
import { MyListingComponent } from './pages/subscription/my-listing/my-listing.component';
|
||||
import { SuccessComponent } from './pages/success/success.component';
|
||||
import { TermsOfUseComponent } from './pages/legal/terms-of-use.component';
|
||||
import { PrivacyStatementComponent } from './pages/legal/privacy-statement.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
@@ -45,15 +47,26 @@ export const routes: Routes = [
|
||||
component: HomeComponent,
|
||||
},
|
||||
// #########
|
||||
// Listings Details
|
||||
// Listings Details - New SEO-friendly slug-based URLs
|
||||
{
|
||||
path: 'details-business-listing/:id',
|
||||
path: 'business/:slug',
|
||||
component: DetailsBusinessListingComponent,
|
||||
},
|
||||
{
|
||||
path: 'details-commercial-property-listing/:id',
|
||||
path: 'commercial-property/:slug',
|
||||
component: DetailsCommercialPropertyListingComponent,
|
||||
},
|
||||
// Backward compatibility redirects for old UUID-based URLs
|
||||
{
|
||||
path: 'details-business-listing/:id',
|
||||
redirectTo: 'business/:id',
|
||||
pathMatch: 'full',
|
||||
},
|
||||
{
|
||||
path: 'details-commercial-property-listing/:id',
|
||||
redirectTo: 'commercial-property/:id',
|
||||
pathMatch: 'full',
|
||||
},
|
||||
{
|
||||
path: 'listing/:id',
|
||||
canActivate: [ListingCategoryGuard],
|
||||
@@ -177,5 +190,15 @@ export const routes: Routes = [
|
||||
component: UserListComponent,
|
||||
canActivate: [AuthGuard],
|
||||
},
|
||||
// #########
|
||||
// Legal Pages
|
||||
{
|
||||
path: 'terms-of-use',
|
||||
component: TermsOfUseComponent,
|
||||
},
|
||||
{
|
||||
path: 'privacy-statement',
|
||||
component: PrivacyStatementComponent,
|
||||
},
|
||||
{ path: '**', redirectTo: 'home' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user