Skip to content

Commit

Permalink
Fix invalid comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
barteksekula committed May 4, 2023
1 parent 7bf241e commit b14ceb3
Showing 1 changed file with 1 addition and 2 deletions.
@@ -1,7 +1,6 @@
using System;
using System.Globalization;
using Advanced.CMS.ExternalReviews.ReviewLinksRepository;
using EPiServer.Cms.Shell;
using EPiServer.Core;
using EPiServer.Core.Routing;
using EPiServer.Core.Routing.Pipeline;
Expand Down Expand Up @@ -46,7 +45,7 @@ public object RoutePartial(IContent content, UrlResolverContext segmentContext)
}

var nextSegment = segmentContext.GetNextSegment(segmentContext.RemainingSegments);
if (nextSegment.Next.IsEmpty || nextSegment.Next.ToString().Equals(_externalReviewOptions.ContentIframeEditUrlSegment, StringComparison.CurrentCultureIgnoreCase))
if (nextSegment.Next.IsEmpty || !nextSegment.Next.ToString().Equals(_externalReviewOptions.ContentIframeEditUrlSegment, StringComparison.CurrentCultureIgnoreCase))
{
return null;
}
Expand Down

0 comments on commit b14ceb3

Please sign in to comment.