Closed ittaibaratz closed 4 years ago
To reproduce the issue - Install this package in publish: com.adobe.xcl.spaissuesamples.all-1.0.0-SNAPSHOT.zip
Then open the following page on publish - Make sure you are accessing publish anonymously (Not logged in)
http://localhost:4503/content/spaissuesamples/en/home.html
Check the source code of the page to see the meta tag is incomplete:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Home Page My Sample SPA</title>
<meta name="template" content="page-template"/>
<meta property="cq:pagemodel_root_url"/>
Bug Report
Current Behavior When creating an SPA with the Archetype, the SPA will not render properly on an AEM Publish instance.
The page model root url meta tag renders empty:
<meta property="cq:pagemodel_root_url"/>
This leads the SPA to load the model for the current page (i.e. myapp/en/home) instead of the parent page (i.e. myapp/en) and breaks navigation.
Expected behavior/code SPA should render correctly on publish instances, loading the model for the parent page and not the current page.
Environment
Possible Solution Update the ACLs under /conf. I can workaround the issue but giving the anonymous user read access to /conf.