Date | 2023-08-15 (482 days ago) |
---|---|
Downloads | 20K downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET 6 |
Umbraco Versions | Umbraco 10 Umbraco 11 Umbraco 12 |
New release for Umbraco 10+. This release will not work on older versions of Umbraco.
#installation
">Installation.NET CLI:
dotnet add package Skybrud.Umbraco.Redirects --version 4.0.14
Package Manager:
Install-Package Skybrud.Umbraco.Redirects -Version 4.0.14
#changelog
">ChangelogFixed serialization issues when the .AddNewtonsoftJson
extension method is used to replace System.Text.Json
with Newtonsoft.Json
(see #179
, #182
and 8aa7b8a
)
Since the initial release for Umbraco 9, various models in this package have had [JsonPropertyName]
added to them to control the name and casing of the serialized properties. These attributes would only have an effect when using System.Text.Json
for the serialization (default), but not when using Newtonsoft.Json
globally instead. Thanks to a PR from @nikcio, these models now have relevant attributes for both System.Text.Json
and Newtonsoft.Json
.
Added support for UseStatusCodePagesWithReExecute
and IStatusCodeReExecuteFeature
(see #181
and 8aa7b8a
)
When using UseStatusCodePagesWithReExecute
for error handling, ASP.NET Core will in some cases rewrite the URL of the request, meaning that the redirects package would use the URL of the error page rather than the original URL of the request. When the URL is rewritten, the original URL is available through the IStatusCodeReExecuteFeature
of the inbound request, and as of this release, the redirects package will now check if an IStatusCodeReExecuteFeature
is available in the request, and if so, use the URL specified here instead.