When I add new Meta Tag by path from admin/config/search/metatags/context/add, save it and then I try to view the page I created (in my case news). No meta tags get generated in the page.

However this problem gets fixed when I go to admin/structure/context/list/news/edit(Editing page provided by Context UI module) and re save context created by the Meta Tags.

Files: 
CommentFileSizeAuthor
#15 metatag-n1883118-15.patch1.36 KBDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

Comments

DamienMcKenna’s picture

What version of Context are you using?

gripster’s picture

I'm using Context 7.x-3.0-beta6 version.

ben.hamelin’s picture

I've run into the same issue, however upon saving via Context UI I'm still not seeing any meta output.
I added some test meta fields too (keywords, canonical, description) in addition to the robots directives I had selected. Nothing showing up.
Tried multiple variations on the path match.
Tried adding the rule back via Context UI - still nothing.
Wondering if this is possibly a Context beta6 issue??

enzoch’s picture

You need this module:
http://drupal.org/project/context_metadata

I don't know why the metatag module didn't list it as a required module.
Took me 2 hours to figure out what's wrong with it.

DamienMcKenna’s picture

@enzoch: You don't need context_metadata, if there's something missing in metatag_context then it's a bug and we'll deal with it.

qudsiyya’s picture

I am facing the same problem.

mrfelton’s picture

Same problem here. When I edit the context created by metatag, it appears to have no reaction registered at all (the path condition is there though). Saving the context from within the context UI as suggested by the OP had no effect.

mrfelton’s picture

Actually, editing the context did have an effect - to break the context completely, as in, after editing it it no longer showed up on admin/config/search/metatags/context and I had to delete it and recreate it from admin/config/search/metatags/context again (still not working after deleting and recreating).

DamienMcKenna’s picture

Priority:Normal» Critical

Bumping the priority.

mrfelton’s picture

I think this is just some caching issue, since we changed nothing and now it seems to be doing its things properly. Metatags are correctly being set in the html source, and when editing the context via the context UI, the reaction is fully set up as per how it was set up at admin/config/search/metatags/context

qudsiyya’s picture

I was placing the paths with a slash

e.g.

/portfolio
/equipment

I removed the slash and the meta tags have starting appearing

DamienMcKenna’s picture

Title:Adding a new metatag by path doesn't get properly saved as context» Clarify paths added in metatag_context should be local paths, not absolute or relative
Component:Code» Documentation
Category:bug» task
Priority:Critical» Normal

@qudsiyya: Glad you were able to sort it out.

Lets change this to a small documentation / UI task to clarify that the path values added to the Path field on the metatag_context pages should be local paths to the Drupal site, and not include either the leading slash or the full hostname.

qudsiyya’s picture

Component:Documentation» Code
Category:task» bug
Priority:Normal» Critical
Status:Active» Fixed

@DamienMcKenna
Documenting it would really help. Also we can change the status to fixed now.

DamienMcKenna’s picture

Component:Code» Documentation
Category:bug» task
Priority:Critical» Normal
Status:Fixed» Active

This task isn't done yet.

DamienMcKenna’s picture

Status:Active» Needs review
StatusFileSize
new1.36 KB
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

How's about this? It improves the help message on the Path field to say not to use relative or absolute URLs.

DamienMcKenna’s picture

Version:7.x-1.0-beta4» 7.x-1.x-dev

Committed.

DamienMcKenna’s picture

Status:Needs review» Fixed
DamienMcKenna’s picture

Status:Fixed» Closed (fixed)

Now that Metatag v7.x-1.0-beta5 is out am closing this to keep the issue queue clean.