ErrorDocument Retain Incorrect URL
Hi AEM Community,
I am using the below Error Document directive for redirecting to custom error pages -
ErrorDocument 404 /errors/404.html
Currently the rule is working correctly but I have a requirement to retain the URL which the user entered.
As this will help with user being able to correct the URL more promptly.
However, currently my URL also gets updated with the above.
I had read the below in a blog -
When you have absolute URL in ErrorDocument 404 it will perform full redirect. However using a relative URL will only do an internal rewrite to prevent URL changing in browser.
Am I missing any steps to have the user URL retained in my browser ?
Thanks in advance. Any inputs/help @kautuk_sahni , @arunpatidar ?
Best Regards,
Rohan Garg