SEO/AEO, Farb schema, breadcrumbs
This commit is contained in:
@@ -19,10 +19,11 @@ export class ListingCategoryGuard implements CanActivate {
|
||||
return this.http.get<any>(url).pipe(
|
||||
tap(response => {
|
||||
const category = response.listingsCategory;
|
||||
const slug = response.slug || id;
|
||||
if (category === 'business') {
|
||||
this.router.navigate(['details-business-listing', id]);
|
||||
this.router.navigate(['business', slug]);
|
||||
} else if (category === 'commercialProperty') {
|
||||
this.router.navigate(['details-commercial-property-listing', id]);
|
||||
this.router.navigate(['commercial-property', slug]);
|
||||
} else {
|
||||
this.router.navigate(['not-found']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user