301RedirectModule icon indicating copy to clipboard operation
301RedirectModule copied to clipboard

Sitecore 9 - Allow Redirects On Found Item And Language Fallback

Open mikemuggli opened this issue 6 years ago • 1 comments

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.

mikemuggli avatar Nov 27 '18 15:11 mikemuggli

Hi! Thanks for pointing this out! If you'd like to submit a PR, I'd be very happy to merge.

cadamsdotcom avatar Nov 28 '18 05:11 cadamsdotcom