If you have a custom page and it's menu item passes an object argument the path based meta tags wont work.

The problem seems to reside on _metatags_quick_path_based_page() function and more exact in the last check:

!($router_item['page_arguments'][0] instanceof stdClass)

Because of that I had to change my menu entry. Instead of having "node/%node/custom-path" I changed the argument to "node/%/custom-path" and have the node loaded inside the callback using node_load($nid).

Comments

mariusilie’s picture

Title: Path based tags not working for custom pages with menu object argument » Path based tags not working for custom pages with objects as menu arguments
astonvictor’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.