AEM SPA Routing Issues with hash and query parameter | Community
Skip to main content
viveksachdeva
New Participant
June 4, 2020
Solved

AEM SPA Routing Issues with hash and query parameter

  • June 4, 2020
  • 13 replies
  • 10645 views

Hey guys,

 

We are using AEM with React and having trouble with SPA Routing. We are facing an intermittent issue when the Link contains # or ?

Page data is available using .model.json on the page URI but sometimes when we have # and ?, model.json is added after full URL rather than just path and hence it fails.

And it happens when on dispatcher only when we dont have .html in the URL.

E.g:

Lets say a React Link points to /en/mypage?cid=campaign

I expect data call for this to be  /en/mypage.model.json but sometimes it is sent as /en/mypage?cid=campaign.model.json

 

This logic is abstracted in the node module and hence difficult to check. Anyone else faced similar issue?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by dzmitryk7401781

We've prepared patch to fix it: https://github.com/adobe/aem-spa-page-model-manager/pull/54 

13 replies

New Participant
June 7, 2020
So you are using extension less url ? and without looking at your Apache rewriter rule, it is difficult to say whats wrong in the rule
viveksachdeva
New Participant
June 7, 2020
Its Client side..
New Participant
June 6, 2020
Is this Client or Server Side react?