Files
Umbraco-CMS/src/Umbraco.Core/Models/DeliveryApi/ApiContentRoute.cs
Kenn Jacobsen ef1aaf8bce Cherry-pick #20142 for V16 (#20147)
* 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.
2025-09-16 11:33:40 +02:00

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; }
}