Hi All,

I just installed Nodewords, specifically to use the Canonical meta tag functionality. I noticed that it auto-creates the Canonical tag based on the current URL being viewed.

For example, if I'm viewing the website at: http://www.domain.com/page

The canonical tag will be auto-created as <link rel="canonical" href="http://www.domain.com/page" />

BUT, if I'm viewing the website at: http://domain.com/page

The canonical tag will be auto-created as <link rel="canonical" href="http://domain.com/page" />

By omitting the "www," this defeats one of the benefits of using the canonical tag. Is there any way to specify a "default" or "base" domain that the system will always use? (or did I miss this in the settings somewhere?)

Thanks!

Comments

avpaderno’s picture

Title: Define base URL for Canonical URLs? » Define base URL for canonical URLs
Version: 6.x-1.3-beta5 » 6.x-1.x-dev
Component: User interface » Code
Status: Active » Fixed

I added a new option that allow to set the base URL for the canonical URLs.
Thanks for the suggestion!

wflorian’s picture

There is also a problem with the frontpage when using canonical urls - it should say "http://www.domain.com/" in the canonical url for the frontpage, but it does show "http://www.domain.com/title-of-frontpage"!

What to do?

Status: Fixed » Closed (fixed)
Issue tags: -canonical

Automatically closed -- issue fixed for 2 weeks with no activity.