Developer forum

Forum » Swift » Swift v1 - og:image tag for single product page

Swift v1 - og:image tag for single product page

Didzis Kuzmans
Reply

Hello

We have noticed that we don't have og:image tag for products in Swift websites.

In Swift files, there are some code in Swift\eCom\ProductCatalog\ProductViewDetail.cshtml:

Pageview.Meta.AddTag($"<meta property=\"og:image\" content=\"{Dynamicweb.Context.Current.Request.Url.Scheme}://{Dynamicweb.Context.Current.Request.Url.Host}{Model.DefaultImage.Value}\">");

But it seems like this code have no impact on end result in product details page.

Is there simple fix for it or maybe I am missing something ?


Replies

 

You must be logged in to post in the forum