Skip to content

Can't get active node for Site type nodes if viewing a sub-page of the site #435

@Michael-Paragonn

Description

@Michael-Paragonn

Question

I have a few nodes of the "Site" type. Each is linked to their respective Craft sites in a multi-site install. For the life of me, I can't seem to get the active site recognized from a sub-page of the site.

For example, on www.example.com, the Site node linked to that site will show it as the active site, but on www.example.com/foo/bar, the Site node will not be recognized as active. This happens even if I specify true as the second parameter of getActiveNode(), as specified here.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions