* Support querystring and anchor for local links in Delivery API output (#20142) * Support querystring and anchor for local links in Delivery API output * Add default implementation for backwards compat * Add default implementation for backwards compat (also on the interface) * Fix default implementation * Add extra tests proving that querystring/postfix can be handled for local links in both legacy and current format.
17 lines
376 B
C#
17 lines
376 B
C#
namespace Umbraco.Cms.Core.Models.DeliveryApi;
|
|
|
|
public sealed class ApiContentRoute : IApiContentRoute
|
|
{
|
|
public ApiContentRoute(string path, ApiContentStartItem startItem)
|
|
{
|
|
Path = path;
|
|
StartItem = startItem;
|
|
}
|
|
|
|
public string Path { get; }
|
|
|
|
public string? QueryString { get; set; }
|
|
|
|
public IApiContentStartItem StartItem { get; }
|
|
}
|