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
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM SPA React - Dispatcher Setup

Avatar

Avatar
Boost 3
Level 1
bipinchandra92
Level 1

Likes

3 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Give Back
Validate 1
Boost 1
View profile

Avatar
Boost 3
Level 1
bipinchandra92
Level 1

Likes

3 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Give Back
Validate 1
Boost 1
View profile
bipinchandra92
Level 1

20-10-2020

We have tried to setup the dispatcher for the AEM SPA Journal Project.

In the Apache, we have done the rewrite to short the urls to hide the content hierarchy.

http://localhost/content/we-retail-journal/react/en/home.html to http://localhost/react/en/home.html

 

Only with the /content the react application is working and in the XHR there is only one call for model.json

bipinchandra92_0-1603208827473.png

 

And with the short url we are getting the two model.json calls that are 

bipinchandra92_1-1603208887546.png

 

What steps needed  in the AEM SPA dispatcher setup to hide the /content  hierarchy?

 

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
nasrinj31078225
Level 1

Like

1 like

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
nasrinj31078225
Level 1

Like

1 like

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
View profile
nasrinj31078225
Level 1

10-02-2021

@bipinchandra92  I am also facing same issue. We are using SPA Editor project archetype 23. I have added rewrite rules on dispatcher for URL shortening. I am getting blank page. Whenever en.model.json is coming XHR, the page is coming blank. I tried to debug the issue and added vanity URL on publisher as /home.html, but same issue was there  on publisher too.                                                                                                                                               The issue is not with the dispatcher but in SPA whenever we are shortening the URL, the AEM-React integrated page is not getting rendered properly.

I tried to create non-SPA page with no-spa components in the same project, I am getting page properly with same dispatcher settings.

 

Please let me know, in case you got any solution 🙂

Thanks in Advance,

Nasrin