Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

React Router Question #50

Closed
Harishv57 opened this issue Mar 11, 2019 · 2 comments
Closed

React Router Question #50

Harishv57 opened this issue Mar 11, 2019 · 2 comments

Comments

@Harishv57
Copy link

I have been working on spa with react in aem. In edit - preview mode, list url are routed without updating the page url.
Behavior:
By removing editor.html ,it update the url while routing .

Question :

I need to route to the aem pages without updating the url. Just the content should update. How to proceed in this spa editor.where to handle ?

@godanny86
Copy link
Collaborator

hi @Harishv57 I would need to investigate further but I would look into using the HashRouter

and updating the code at https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events/blob/react/chapter-3/react-app/src/index.js#L12 and the withRoute HOC: https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events/blob/react/chapter-3/react-app/src/utils/RouteHelper.js#L17

I'm not sure what will happen with the AEM editor if using a HashRouter though...

@godanny86
Copy link
Collaborator

hi @Harishv57 since this is not directly related to the tutorial I'm going to close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants