Menu close

SEO product improvements

2021-10-20

We improved SEO for Product detail pages.


Canonical URLs

From now on all product pages have canonical link in the header, which is constructed based on product ID and product slug. 

Example: a product with Yellow Trucker Hat as a name will have yellow-trucker-hat as a slug. Then a canonical URL of this product would be: https://example.wearecnxion.com/products/1/2/3/yellow-trucker-hat/


URL resolving

From now on it's possible to access product pages using following urls:

  • https://example.wearecnxion.com/products/1/2/3/
  • https://example.wearecnxion.com/products/1/2/3/{real product slug}/
  • https://example.wearecnxion.com/products/1/2/3/{any slug}/

Where a canonical url is of a following form: https://example.wearecnxion.com/products/1/2/3/{real product slug}/

They would all resolve. If a user accessed a product by not using the canonical url, they will be redirected to the canonical form.


Slugs

Slugs are recalculated every time when a product is saved. The slug is a slugified name of a product.


Title

From now on:

  • title
  • meta og:title
  • meta og:title

are set based on Product's name and the website name in a following form: {product title} | {website name}.


Description

From now on:

  • meta description
  • meta og:description 
  • meta twitter:description

are set based on Product's short description. If short description is not set, then truncated full description of a product is used.