Ticket #13057 (confirmed Bug)
Login form does not recognize INavigationRoot
Reported by: | holden@… | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 4.1 |
Keywords: | Archetypes | Cc: |
Description
I am implementing a subsite by setting the INavigationRoot on a folder. Then I am using Diazo to theme the sub-site by using its body class as a selector (<body class="... site-subsite ..."). However, I have noticed that the login_form.cpt or main_template does not return the correct site class in the body tag. It always returns the id of the real plone instance (<body class="... site-realplonesite ..."). So the template that gets used is the one for the main site. Other templates seem to return the correct body class.
Change History
Note: See
TracTickets for help on using
tickets.
I assume this code is to blame:
https://github.com/plone/plone.app.layout/blob/master/plone/app/layout/globals/layout.py#L119
Possibly related to #11825.
This feature request might be of interest: #11108