Skip to content

Commit 5da71ef

Browse files
authored
Merge pull request #181 from SebastianFalborg/feature/change-path-to-list
Feature: Change Record.Path to be a list of strings
2 parents 2700fe6 + b76ce93 commit 5da71ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Cms.Integrations.Search.Algolia/Builders/ContentRecordBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public ContentRecordBuilder BuildFromContent(IContent content, Func<IProperty, b
4747

4848
_record.TemplateId = content.TemplateId.HasValue ? content.TemplateId.Value : -1;
4949
_record.Level = content.Level;
50-
_record.Path = content.Path;
50+
_record.Path = content.Path.Split(',').ToList();
5151
_record.ContentTypeAlias = content.ContentType.Alias;
5252
_record.Url = _urlProvider.GetUrl(content.Id);
5353
_record.Data = new();

src/Umbraco.Cms.Integrations.Search.Algolia/Models/Record.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Record(Record record)
4242

4343
public int Level { get; set; }
4444

45-
public string Path { get; set; }
45+
public List<string> Path { get; set; }
4646

4747
public string ContentTypeAlias { get; set; }
4848

0 commit comments

Comments
 (0)