301RedirectModule
301RedirectModule copied to clipboard
Sitecore 9 - Allow Redirects On Found Item And Language Fallback
I believe there is an issue with the code in the RedirectProcessor in the method AllowRedirectsOnFoundItem when you are using Language Fallback.
There is the following line in the method: var redirectFolderRoot = db.SelectSingleItem(redirectRoot);
It appears that using the SelectSingleItem() method does not seem to adequately support language fallback of the root folder item.
I changed this line to use the db.GetItem() method and this appears to properly support language fallback of the root folder item.
Hi! Thanks for pointing this out! If you'd like to submit a PR, I'd be very happy to merge.