Ticket #13057 (confirmed Bug)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Unknown to General

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

Note: See TracTickets for help on using tickets.