add canonical in blog tag page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
Hi
how i can add canonical tag in blog tag page
for example this page:
https://demo.nopcommerce.com/blog/tag/money

i want add in this page canonical tag to my money category page.
https://demo.nopcommerce.com/money
1 year ago
you need to add this lines of code at RouteProvider.cs

//blog
endpointRouteBuilder.MapControllerRoute(name: "BlogByTagCanonical",
pattern: $"{lang}/{{tag}}",
defaults: new { controller = "Blog", action = "BlogByTag" });


1 year ago
Hi
thank you but this is not correct
i must add this "<link rel=canonical href=https://demo.nopcommerce.com/money>" to header tag page (https://demo.nopcommerce.com/blog/tag/money).
1 year ago
oh! Understand wrongly your question. You can check this plugin Meta Tag Manager (SEO) https://www.nopcommerce.com/en/meta-tag-manager-seo-foxnetsoftcom
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.