Date | 2021-01-29 (1,386 days ago) |
---|---|
Downloads | 1,351 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET 4.7.2 |
Umbraco Versions | Umbraco 8 |
#installation
">Installation#changelog
">ChangelogAdded null check to TryGetPreview
method (see 60b44ff
)
The SPA endpoint may be requested with a nodeId
parameter instead of the normal url
parameter. If this was the case, the TryGetPreview
would fail as url
would be null.
Added null check as Arguments
property may not have been initialized yet (db45f4b
)
Should an exception occur, and depending on the setup/request, the SPA may generate a HTML error message with details about the request and the exception. The method responsible for this would attempt to read multiple properties from request.Arguments
, which would result in a new exception if the original exception was thrown before request.Arguments
had been populated.
Made methods of SpaRequestHelper
class virtual (see 79254ae
)
The SpaRequestHelper
class has a lot of virtual methods, but there were some left that weren't marked as virtual. With this release, those methods are now virtual as well so they can be overridden in sub classes.
Improved error handling (see 5afcd35
, cacb594
and f64fe87
)
When calls inside the GetResponse
method throws an exception, information about that exception is added to the Umbraco log. With this release, the error message now contains a few more details about the request. In addition to that, the error handling is now partially handled by a new HandleGetResponseException
, which can be overridden i sub classes.
Introduced new AddTrailingSlash
and RemoveTrailingSlash
helper methods (see 5a2715a
)
The new methods can be used for either adding trailing slashes to the end of URLs or removing them instead. The methods are not called directly by the SPA package, but may be used by sub classes of SpaRequestHelper
.
Updated Skybrud.Umbraco.Redirects dependency (see aed83b4
)
The dependency for Skybrud.Umbraco.Redirects has now been updated to the latest version.