Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change the canonical tag ? #37

Open
markoddi opened this issue Apr 20, 2017 · 2 comments
Open

How do I change the canonical tag ? #37

markoddi opened this issue Apr 20, 2017 · 2 comments

Comments

@markoddi
Copy link

markoddi commented Apr 20, 2017

Hi,

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?

@therealjmj
Copy link

Also looking for a solution here.

@bogdanovic
Copy link

bogdanovic commented Jul 22, 2018

Hello i check plugin with current version and this issue are fixed in pull request #33 , you shoud separate meta with links tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants