support for canonical tags
See original GitHub issueHi,
How do I make the canonical tag change. I’ve got the title, description and keywords changing ok.
Do I simply do this:
{
path: 'home',
component: HomeComponent,
data: {
meta: {
title: 'Home page',
description: 'Description of the home page',
canonical: 'mywebsite.com/home'
}
}
}
I’m using angular version 4, with webpack, typescript and ng2-meta plugin. I just need to make the canonical tag change in runtime like the description changes. Is this possible?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:8 (3 by maintainers)
Top Results From Across the Web
URL Canonicalization and the Canonical Tag | Documentation
A canonical URL is the URL of the page that Google thinks is most representative from a set of duplicate pages on your...
Read more >Canonical - Search Console Help - Google Support
A canonical URL is the URL of the best representative page from a group of duplicate pages, according to Google. For example, if...
Read more >Canonicalization - Moz
A canonical tag (aka "rel canonical") is a way of telling search engines that a specific URL represents the master copy of a...
Read more >Canonical URLs: A Beginner's Guide to Canonical Tags
A canonical URL is the URL of the principal version of a page when you have duplicate versions of that page on your...
Read more >Canonical Tags: A Simple Guide for Beginners - Ahrefs
Canonical tags help to combat duplicate content issues. They tell search engines like Google to index and rank the right pages.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fulls1z3 have you some news about this? If you want I can do a PR with this feature
yes. The PR is already there: https://github.com/angular/angular/pull/34606