Master Page fragment style is not propagated to the Utility Page

Issue

  • I have an issue with the master page style propagation to the Utility Page. I create a fragment with a style and I create a master page, then I add this fragment to it, then I create a Utility Page based on the master page. When we configure an existing Content Page with the Master Page, the fragment style is not propagated to the Page.

Reproduction Steps:

  1. Go to Design --> Fragments, add a Fragment Set, and create a basic fragment with the following configuration:                                                                                                                                     
    HTML: <div class="fragment_1"> Local fragment </div>  CSS: .fragment_1 { color: red; }  Javascript: console.log("Local fragment");
  2. Go to Design --> Page Templates and under Masters add a master page and add the above fragment to it, then publish it.
  3. Go to Site Builder --> Pages --> Utility Pages and add a Utility Page based on the new master page and add to it a Paragraph fragment with the text "404", and make sure that the Page is configured to use the new Master Page by going to the left panel --> Click the Page Design Options icon and select the new master page, then publish it
  4. Click on the kebab menu of the utility page and mark it as default.
    Checkpoint: Type any non-existent URL, for example, http://localhost:8080/nonexistent, and see that the fragment from the master page appears (in red color).
  5. Go to Site Builder --> Pages, click the kebab menu beside the Home Page, and configure it to use the new master page (from the left panel --> Page Design Options), then publish it.
  6. Hit the non-existent URL: http://localhost:8080/nonexist

Actual Result: The fragment appears but without the style color of the master fragment.                  Expected Result: The fragment appears with the style configured on the master page.

Environment

  • Liferay DXP 7.4 Quarterly Release 2023.Q4.0

Resolution

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0