Skip to content

Menu item specific template style is not working #16805

@nuncanada

Description

@nuncanada

Steps to reproduce the issue

Version 3.7.2 (we are trying to update to it from 3.6.2)

Put a default template.
Choose a Menu item and put another template as its template style.
Using SEF for the site.

Expected result

When accessing the menu item alias, it should change the template to the one assigned to the menu item.

Actual result

Only the default template is displayed.

System information (as much as possible)

Additional comments

Debugging the code, it seems that the getTemplate function at libraries/cms/application/site.php is being called BEFORE the parseSefRoute function at /libraries/cms/router/site.php.
But for the getTemplate function to work properly it depends on the parseSefRoute function having already assigned what is the active Menu Item.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions