Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Redirect to enable Universal Editor support in local AEMaaCS SDK for EDS websites

License

Notifications You must be signed in to change notification settings

diva-e-aem/com.divae.rnd.universaleditor.redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal Editor Redirect

Build

UPDATE: this bundle is obsolete - you can achieve this with OSGi configuration as well - example:

"com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl": {
  "authoringUIModeService.default": "TOUCH",
  "authoringUIModeService.editorUrl.classic": "/cf#",
  "authoringUIModeService.editorUrl.touch": "/editor.html",
  "authoringUIModeService.editorUrl.universal": "$[env:AEM_UNIVERSAL_EDITOR_PATH;default=https://experience.adobe.com/#/@myenvironment/aem/editor/canvas/]",
  "authoringUIModeService.resourceTypes.universal": ["core/franklin/components/page/v1/page"]
},
"com.day.cq.commons.impl.ExternalizerImpl": {
  "externalizer.domains": [
    "local $[env:AEM_EXTERNALIZER_LOCAL;default=https://localhost:8443]",
    "author $[env:AEM_EXTERNALIZER_AUTHOR;default=https://localhost:8443]",
    "publish $[env:AEM_EXTERNALIZER_PUBLISH;default=https://localhost:4503]",
    "preview $[env:AEM_EXTERNALIZER_PREVIEW;default=https://localhost:4503]"
  ]
}

If you run Universal Editor locally with a local AEMaaCS SDK instance and an EDS/X-Walk application, when you hit the "edit" button you will get a HTTP 404 when the url "/ui#..." is called.

This bundle implements a simple redirect which redirects those URLs to

https://experience.adobe.com/#/@myenvironment/aem/editor/canvas/localhost:8443/<content-path>

This redirect target URL is configurable via OSGi configuration.

In effect the edit button should work.

About

Redirect to enable Universal Editor support in local AEMaaCS SDK for EDS websites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published