I have secured a Sitecore SXA page on role basis and able to redirect to login page (which is using SXA login component) upon direct access of the page [http://abc/registration/login?returnUrl=%2Fregistration%2Fmy-profile][1]. But not able to navigate to return url (http://abc/registration/my-profile) upon successful login and always getting redirected to home page instead.



It started working when I clear the DestinationUrl field in the Login metadata item (/sitecore/content/Test/Tenant/Site/Data/Security/Login)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.