Closed anshul-goyal-1 closed 1 year ago
Do you have Sling Mappings to resolve /test/ to a full path , e.g. /content/my-site/en/test ?
If not, use the full JCR path, e.g. instead of /test/ the source should be /content/my-site/en/test
The use case is that there is no physical page in AEM with a full path that resolves to /test/, In the e-commerce application, we need to apply the rules to /test/ category which is coming from the commerce engine and then re-direct it to a place in AEM. So I can put a destination to a full path like /content/my-site/en/new-landing but the source will not be a page/location within AEM.
Redirect Manager config: /test/ - http://localhost:4503/new-test
Sling Mappings:
So the question is if I need to do the /etc/mapping then what's the use of the redirect manager?
by default the Redirect Filter listens to /content/* requests:
change it to an empty string to listen from the root.
(the value "/" won't work, it's a bug which I'm going to fix)
with these settings it worked to me:
curl -I http://localhost:4503/test
HTTP/1.1 302 Found
Date: Wed, 17 May 2023 08:31:33 GMT
Location: https://www.google.com
Content-Length: 0
Thanks for the prompt reply and are you planning to release the fix for "/" soon or is there a roadmap for the same.
Thanks for the prompt reply and are you planning to release the fix for "/" soon or is there a roadmap for the same.
I'll try to include the fix in the upcoming 6.0.9
Thanks, I will keep an eye and update it. Thanks for the help
Required Information
Expected Behavior
While setting up the redirect via the Redirect Manager,I need to add a redirect and after publish can redirect to the source page. We are using AEM SPA based implementation
Actual Behavior
When I add a redirect, the page goes blank.
Steps to Reproduce
I get the blank page rather than it navigates to the destination page
Links
Links to related assets, e.g. content packages containing test components
redirect.zip