fortedigital / fortedigital/Optimizely.ContentUsage

Null URLs when content type is used in another block

Open
#68 0 comments 0 reactions 1 assignee Claimed by @Fifok View on GitHub
BE
Dominant language
C#
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When some block is used inside another block we get that usage, but it's null in pageURLs.
The reason: ContentUsageService resolves only the direct usage when resolving page URLs.

Example:
![image](https://github.com/fortedigital/Optimizely.ContentUsage/assets/31856712/7ea61e30-4587-45d2-89a6-4257c6ad4d0c)

There should be two URLs.

## Possible solution:

We should loop through all resolved references until we get a reference to a page.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.