Metatags Doubling Up


(Jon C. Munson II) #1

While developing a new site, I’ve noticed that the metatags have doubled up when the pages are published - meaning they’re repeated twice.

How do I address this?

Thanks!


(Paul Takeuchi) #2

I just discovered this as well. For the first time with the latest release 6.3.6. I believe the Metatags behavior on Sitewide Code page has changed. Where formally it was the metatags that were entered there would be used in newly created pages, it seems that metatags that are on SWC page are appended to the metatags created in the Edit Metatags on all pages. The only solution is to delete the metatags on SWC page, including the Name field (for example: description) so nothing gets appended. Screenshots below of SWC page and Text Wrangler view of html header.


(Jon C. Munson II) #3

Well, that’s certainly unexpected behavior… :confused:

I would call it a bug, as the page metatag should override the “default” SWC set…


(Paul Takeuchi) #4

I agree: it is a bug. I think the behavior should be a specific page’s metatags are king thus if there is a duplicate named metatag in SWC, it should be ignored.

Right now the workaround is to delete the full metatags (name and content) on SWC page you don’t want appended to your page’s metatags.


(Jon C. Munson II) #5

I’m reclassing this as a bug.

Removing SWC isn’t really a grand idea as you then have to put the metatags in all the pages, and touch every page upon a change - that’s worse than doubled tags IMHO.


(Nik Fletcher) #6

Hi folks

There’s never been any behaviour where the site wide code would be overridden by per-page metatags (i.e. we’ve never de-duped them).

RapidWeaver 6.3.6 corrected a bug where, when creating a new page, the site-wide metatags were inserted into the page when it was created (when in reality the tags for a new page should be left blank).

Site-wide tags are exactly that: intended for tags that are specified site-wide, so things like description etc are best set on a per-page basis.

—N


(Jon C. Munson II) #7

Thanks @nikf for your response! :smile:

How difficult would it be to append only the difference? I assume the tags, by their layout, are tabled, so it should be an easy matter to select the difference of the sets and apply only that… This makes having defaults, as I understood SWC to be, much easier IMHO.

Then again, I’m a bit of a strange nut who doesn’t always do things as intended… :wink:


(Nik Fletcher) #8

Noted! I can’t make any guarantees, but it would make sense for RW to handle this as smartly as possible.