Product Links suggestion

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 yıl önce
I've noticed that the product links have bad SEO performance.

This is because of this:
<asp:Button runat="server" ID="btnProductDetails" OnCommand="btnProductDetails_Click"
                Text="<% $NopResources:Products.ProductDetails %>" ValidationGroup="ProductDetails"
                CommandArgument='<%# Eval("ProductId") %>' CssClass="productgridproductdetailbutton" /><br />

This exists in both ProductBox1 and ProductBox2 controls.

And since the only thing that it does is this:

    protected void btnProductDetails_Click(object sender, CommandEventArgs e)
        {
            int productId = Convert.ToInt32(e.CommandArgument);
            string productURL = SEOHelper.GetProductUrl(productId);
            Response.Redirect(productURL);
        }


I suggest changing it to <asp:HyperLink.... without any postbacks. This way googles crawler will find all....

Otherwise google will not hit hit the postback button.
13 yıl önce
Just little info. It's not a biggie since i see that product title is linked correct. But both should be linked correct to get navigation perfect...
13 yıl önce
Chris,

Thanks for suggestion
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.