- Issue created by @kachinsky
- 🇨🇦Canada dshields
This seems to also be the case when a condition is added in "Request path" as well as "Webform". Could it be that any combination of conditions breaks the logic?
If you configure conditions for node and commercial product in the tag settings, the tag will not be added to both of them.
If only a product or a node is configured, the tag is attached to the page of the corresponding entity.
I was able to reproduce this issue on a clean Drupal (10.2.7) installation with google_tag (2.0.5) and commerce modules installed.
The problem is in passesConditions() method of TagContainerResolver class, on the node page it gets MissingValueContextException for commerce_product context and on the product page the same exception occurs but for node context.
During debugging I've found out that on the node page the ProductRouteContext can't get product from route and on the product page NodeRouteContext can't get node from the route.
Active
2.0
Code
This seems to also be the case when a condition is added in "Request path" as well as "Webform". Could it be that any combination of conditions breaks the logic?