Skip to content

Commit 3d52d22

Browse files
authored
Merge pull request #12 from hakksor/master
Fixed an issue where tags wouldn't get cleared when removed from content
2 parents ff05784 + 1149142 commit 3d52d22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Geta.Optimizely.Tags/Core/TagService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Geta Digital. All rights reserved.
1+
// Copyright (c) Geta Digital. All rights reserved.
22
// Licensed under Apache-2.0. See the LICENSE file in the project root for more information
33

44
using System;
@@ -161,7 +161,7 @@ private void RemoveOldContentTags(IContent content)
161161

162162
foreach (var tag in oldTags)
163163
{
164-
if (tag.PermanentLinks == null || !tag.PermanentLinks.Contains(contentGuid) || tag.GroupKey != language)
164+
if (tag.PermanentLinks == null || !tag.PermanentLinks.Contains(contentGuid) || !tag.GroupKey.EndsWith(language))
165165
{
166166
continue;
167167
}

0 commit comments

Comments
 (0)