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.

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


What version of Context are you using?

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

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??

You need this module:

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.

@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.

I am facing the same problem.

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.

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).

Priority:Normal» Critical

Bumping the priority.

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

I was placing the paths with a slash



I removed the slash and the meta tags have starting appearing

Title:Adding a new metatag by path doesn't get properly saved as contextClarify 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.

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

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

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

This task isn't done yet.

Status:Active» Needs review
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.

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


Status:Needs review» Fixed

Status:Fixed» Closed (fixed)

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