Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

daros
daros
Online

Badges

Badges
8

Accepted Solutions

Accepted Solutions
2

Likes Received

Likes Received
15

Posts

Posts
5

Discussions

Discussions
0

Questions

Questions
5

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by daros
Customize the badges you want to showcase on your profile
Re: Images are not loading in publish instance - Adobe Experience Manager 06-06-2022
Hello @webdev91, AEM is shortening the image src path on publish environment, you can confirm that by looking at Day CQ Link checker Transformer on the OSGI configs. You need to match those rule with a rewrite or a mapping, project archetype will already include them: https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/dispatcher.ams/src/conf.d/rewrites/__appId___rewrite.rules https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/ui.config/src/...

Views

205

Like

1

Replies

0
Re: Short URLS using React SPA - Adobe Experience Manager 01-06-2022
I made it work! you need to change the URL root meta property on customheaderlibs to use the getRootUrl ( I was wondering what it was for ) from your custom model: This is the default using spa core Page model Change it to your own function It will work fine on publish now, but you also need modify the model so it doesn't short the path in author. Thanks for the help, appreciated.

Views

153

Likes

3

Replies

0
Re: Short URLS using React SPA - Adobe Experience Manager 01-06-2022
@bipinchandra92 In that example i had set Structure Depth to 0, in spa template policy. Here's what it looks like when set to 1: { "title": "English", ":itemsOrder": [], ":items": {...}, ":path": "/en", ":type": "project/components/spa", ":children": { "/en/home": { "title": "Home", ":itemsOrder": [...], ":items": {...}, ":path": "/en/home", ":type": "project/components/page", ":hierarchyType": "page" }, "/en/about-us": {...}, "/en/what-we-do": {...}, "/en/platforms": {...}, "/en/our-work": {......

Views

189

Likes

4

Replies

1
Re: Short URLS using React SPA - Adobe Experience Manager 31-05-2022
Thanks for the help @bipinchandra92 , I have implemented a custom page model and shortened the path at said methods: getExportedPath()getModelUrl()getChildPageModels()all three now, remove the content folder part out of the output. but I still get an extra call:made to /en/home.html and i am not able to get any content outside the initial page load:Clicked on a link to /en/what-we-do.html. Request returns 200, but no page is added to the router. This is the content of home.model.json:{ "title": ...

Views

225

Likes

4

Replies

3
Short URLS using React SPA - Adobe Experience Manager 25-05-2022
Hi, I'm currently facing a lot of issues trying to shorten the URL in an AEM project using the spa editor.Currently we have a structure similar to /content/project/en/home.html that is rewritten to just /en/home/ using dispatcher mod_rewrite.The SPA router just doesn't understand the short URLS, resulting in a blank page. I have tried some sketchy solutions, like shortening the incoming path on the router or a custom model client, but had no success. ( page with duplicated content or could not l...

Views

320

Likes

3

Replies

5