Content fragment edit fails due to redirection in AEMaaCS
In ÃÛ¶¹ÊÓÆµ Experience Manager as a Cloud Service (AEMaaCS) – Assets, you are redirected away from the intended editing interface when trying to edit a content fragment through the new Content Fragment (CF) UI. To resolve the issue, create or update theÌýfile org.apache.sling.security.impl.ReferrerFilter.cfg.json
to allow valid hosts.
Description description
Environment
- Product: ÃÛ¶¹ÊÓÆµ Experience Manager as a Cloud Service (AEMaaCS) – Assets
- Instance: Development
Issue/Symptoms
- Editing content fragments redirects users to an unintended interface.
- Redirection occurs only when using the new Content Fragment UI.
- Direct access to edit URLs works without issue.
Resolution resolution
To resolve the issue, follow these steps:
-
Deploy the following updated OSGi configuration in the
ui.config
module:code language-none { Ìý "allow.hosts.regexp": [ Ìý Ìý "https://.*\\.adobe\\.com:443", Ìý Ìý "https://.*\\.adobe\\.net:443", Ìý Ìý "https://.*\\.workfront\\.com:443", Ìý Ìý "https://.*\\.workfront-dev\\.com:443", Ìý Ìý "https://.*\\.dev\\.workfront\\.tech:443" Ìý ] , Ìý "filter.methods": [ Ìý Ìý "POST", Ìý Ìý "PUT", Ìý Ìý "DELETE" Ìý ] }
Ìý
-
Create or update the file
org.apache.sling.security.impl.ReferrerFilter.cfg.json
with:- Define allowed hosts using regular expressions for your domain.
- Specify the HTTP methods
POST
,PUT
, andDELETE
to be filtered.
-
Deploy the updated OSGi configuration to your environment.
-
Verify that content fragments open in the correct interface without redirection.
Note: After confirming the fix, consult your product team before enabling this configuration in production.