adobe / adobe/aem-project-archetype

SPA Page Publishing

Open
#604 2 comments 0 reactions 1 assignee Claimed by @pfauchere View on GitHub
Dominant language
JavaScript
Stars
596
Forks
431
Avg merge
10d 6h
Merged PRs (30d)
1

Description

Hi, I'm having an issue with an SPA Editor site where none of my content is rendering on the publish instance when I publish a content page. I need to also publish the root page in order for changes to render. Is this an expected issue? Is there any config I can tweak to make it work as desired?

### Expected Behaviour

When I publish a page, the root model json should be updated so that my page gets the latest content updates on the publisher

### Actual Behaviour

The page model is updated but the root model is not. This means my SPA still gets old content. In order for the new content to appear I need to publish the root page too. NOTE: en

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

Create an SPA app using the archetype. Edit home page, publish homepage. Notice content isnt updated on the homepage. Now publish the langage root. Notice the homepage now renders latest content

#### Platform and Version

AEM as a Cloud Service

#### Sample Code that illustrates the problem

site structure of: `/content/my-site/en/home`
_Root model is defined as en.model.json_

I can see on the publish instance that /content/my-site/en/home.model.json is updated but /content/my-site/en.model.json is not

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.