constellation4sitecore / constellation-sitecore9

A collection of Sitecore 9 compatible, helix-conforming libraries for accelerated Sitecore development
MIT License
18 stars 12 forks source link

Add Site to CandidateIsUnique Query #13

Closed josefergui59 closed 10 months ago

josefergui59 commented 10 months ago

Issue Redirect Manager - In the function CandidateIsUnique, when the Query.SelectSingleItem is executed, it's not getting the item by site, just by OldUrl, so if we have 2 items with the same OldUrl and different site, the query gets the first one, no matter the site, returning true when the site is different.

Steps to reproduce the issue. The csv file should have have 2 different Sites, with the same OldUrl. image Import the file using Redirect Manager 2 import rows are created Import again the same file using Redirect Manager 1 extra row (duplicate) for the second site in the file is created. image