Details
-
Bug
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
5.4.0, 5.5.0
-
None
-
None
Description
When inheriting pages from multiple sites (either through cascading or explicit inheritance) the precedence of inheritance is different from what would be expected. The pages of the 'farthest' site are inherited over pages from the 'closest' site.
I've created a demo setup [1] with three sites: * English - Global (en) - @inheritsfrom: ../common
-
- hst:workspace
- hst:pages: global-landing-page
- hst:sitemap: global-landing-page
- hst:workspace
- English - US (en-us) - @inheritsfrom: ['../en', '../en/hst:workspace']
- hst:workspace
- hst:pages: global-landing-page
- hst:sitemap: global-landing-page
- hst:workspace
- English - San Francisco (en-us-sf) - @inheritsfrom: ['../en-us', '../en-us/hst:workspace']
- hst:workspace
- hst:pages: []
- hst:sitemap: []
- hst:workspace
With the above configuration, San Francisco is inheriting the homepage from Global and not from US. My assumption would be that the homepage from US takes precedence over the homepage inherited from Global.
If I remove the homepage from Global, then San Francisco does inherit the homepage from US. So the inheritance configuration is working correctly, it's just that inheritance of Global is taking precedence over inheritance of US. Even if I change the inheritsfrom property to first include ../en-us/hst:workspace and then ../en/hst:workspace (explicit instead of cascading inheritance), I still have the same issue.
[1] Demo setup: https://drive.google.com/file/d/1r47GM4kjNtbTRU1PPV8qo1snYleerIeP/view?usp=sharing