fix(front-end): seo improvemnts #52

Merged
JoeKung merged 3 commits from dev into main 2026-03-23 16:21:00 +01:00
2 changed files with 2 additions and 6 deletions
Showing only changes of commit 02aac24a09 - Show all commits

View File

@@ -237,9 +237,7 @@ export class ProductDetailComponent {
this.setSelectedImageAssetId(null); this.setSelectedImageAssetId(null);
this.modelFile.set(null); this.modelFile.set(null);
const isNotFound = error?.status === 404; const isNotFound = error?.status === 404;
this.error.set( this.error.set(isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR');
isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR',
);
this.setResponseStatus(isNotFound ? 404 : 503); this.setResponseStatus(isNotFound ? 404 : 503);
if (this.shouldApplyFallbackSeo(error)) { if (this.shouldApplyFallbackSeo(error)) {
this.applyFallbackSeo(); this.applyFallbackSeo();

View File

@@ -120,9 +120,7 @@ export class ShopPageComponent {
this.categoryNodes.set([]); this.categoryNodes.set([]);
this.selectedCategory.set(null); this.selectedCategory.set(null);
this.products.set([]); this.products.set([]);
this.error.set( this.error.set(isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR');
isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR',
);
this.setResponseStatus(isNotFound ? 404 : 503); this.setResponseStatus(isNotFound ? 404 : 503);
if (this.shouldApplyErrorSeo(error)) { if (this.shouldApplyErrorSeo(error)) {
this.applyErrorSeo(); this.applyErrorSeo();