Comments (2)
@cqsapient Yes, indeed!
Like you said, since the html is formed on the fly via react, sling rewriters transformers won't come into picture.
LinkChecker also uses Sling Request Rewriter Pipeline and only parses content for HTML responses. In case of SPAs, there is no HTML repsonse. So, Linkchecking is also not performed on the pages.
from aem-spa-project-archetype.
Hi @habansal Yes currently I am doing url shortening on publish instances using reverse sling mapping and using resourceresolver.map in backend java sling model which exposes the .model json which is consumed by front end react. So the output json is domain appended and url shortened . I guess this is the most appropriate approach, let me know if you see a cleaner solution.
Now, this approach works fine for new custom components, but I am again facing another issue when using the Content Fragment core component in my SPA. We have enabled CF by creating a corresponding react component and mapped it with the wrapper AEM content fragment component using , which works fine, but I am not able to do url shortening in the CF component as the json is created by core component's code . I know we can extend core component models using Sling delegation patterns,
https://github.com/adobe/aem-core-wcm-components/wiki/Delegation-Pattern-for-Sling-Models
but the doc says we will be able to only use the public methods of the model; and I am not sure which one of these classes
is responsible for rendering the pathfield configured in the CF model(as I want to apply resourceresolver.mapto() in the pathfield's value). Please let me know if it is possible to extend/customize any of these classes in my custom code so that I am able to use resourceresolver.mapto() and hence shorten the url in the json exposed by content fragment.
Will appreciate your help.
Thanks,
from aem-spa-project-archetype.
Related Issues (20)
- Lighthouse checks with CircleCI
- The desired archetype does not exist (com.adobe.cq.spa.archetypes:aem-spa-project-archetype:1.0.5-SNAPSHOT) HOT 2
- Default app fails due to malformed url HOT 10
- Fix flaky tests on macOS CI HOT 1
- Update to use latest Core Components dependency HOT 1
- Typo in README
- Page with no extension is not rendered
- Update Jackson dependencies
- Angular Archetype discrepancies with Wknd Events code repo HOT 2
- The desired archetype does not exist (com.adobe.cq.spa.archetype:aem-spa-project-archetype:4.0.0 HOT 2
- [Angular] Authorable component does not refresh automatically when in AEM Edit mode HOT 5
- Text Component Fails to Render after upgrading to Angular 9
- Add a convenience NPM script to deploy the project into AEM locally HOT 1
- React Code splitting HOT 8
- wrong path of filter.xml in pom.xml HOT 2
- Doesn't work on IE 11 HOT 2
- React app does not load on publish instance due to HierarchyPageImpl HOT 3
- mvn test fails for newly generated project HOT 5
- SPA Principles in Multi Module Project? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aem-spa-project-archetype.