Drupal's double HTML meta print trashes Nodewords.

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
opegasus's picture

It's a crying shame that Drupal's core code causes double meta printing in the HTML.

I really wanted to use Nodewords to enhance each node's meta keywords and descriptions for SEO. The validity of being able to specify the exact meta info for each specific node would greatly enhance targeted SEO. due to this error I have to hard code a set of tags for each template. Lost is the ability to SEO a node on the fly.

I do hope someone in D-core figures out the issue and corrects it. The Nodewords module is a waste of effort for the developers of that terrific module if Drupal double prints everything.

Even Drupal.org has a double Print:

head
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon
Drupal - Open Source CMS | drupal.org

Comments

Why not go help review the

Dave Reid's picture

Why not go help review the issue to fix it?
http://drupal.org/node/451304

Senior Drupal Developer for Lullabot | www.davereid.net | @davereid

Not following your suggestion...

opegasus's picture

...on reviewing the issue?

Thanks Dave for the comment.

I am incredibly new to Web and Drupal tech stuff. Granted the issue may be well documented (thanks for that link!) and I do hope that D- 6 & 7 will be cleaned up because Drupal is fantastic, what little I do know about it.

Perhaps (as some posting folks have said) that the search engines do ignore second sets of Meta tags, the elegance is gone. Plus it is now one more thing to ignore?

It has been stressed to me over and over again about 'Web green' and 'Web tidy' and HTML tidy, (etc.) and Best Practices. Ergo it is a blatant error that keeps showing up and yes due to my trainings I keep seeing it and cringe.

Plus how does anyone really know if the search engines compare double meta's to sites with single meta's and downgrade the doubles vs. the singles-normal code? Search engine algorithms are certainly a well kept secret from me and by the answers on the web, from most others to boot.

I posted this for our local group even though there are some threads elsewhere on the web but there is no definitive answer that seems acceptable. Heck, if I leave bad code laying around, not only does it penalize me but the sites I am to build and then it can give (unintentionally) a bad rap to others.

Yes, Drupal and all it's amazing modules are free yet if someone gave you a free addition to your house and it falls apart or causes issues/costs repeatedly for you, then how good is free?

Don't get me wrong here, please. Even though I am new to all this I can see that Drupal is a massive and powerful tool. No it isn't causing massive cost or issues to me, yet. My example was designed to be dramatic to drive the point home.

Yes, I would love to be at the experiential level to help code core and/or modules and be a helpful issue reviewer but that ain't today. :-(

Cheers and thanks again!