Skip to content

Commit ab95824

Browse files
committed
[edit] rename DisablePreviousPageUrlUpdate to EnablePreviousPageUrlUpdate and bump to v5.7
1 parent 1333973 commit ab95824

5 files changed

Lines changed: 26 additions & 17 deletions

File tree

src/Simplify.Web/Bootstrapper/Setup/BaseBootstrapperControllersExecution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public virtual void RegisterControllersExecutor()
6363

6464
BootstrapperFactory.ContainerProvider.Register<ControllersExecutor>();
6565

66-
if (!Settings.DisablePreviousPageUrlUpdate)
66+
if (Settings.EnablePreviousPageUrlUpdate)
6767
BootstrapperFactory.ContainerProvider.Register<IControllersExecutor>(r =>
6868
new PreviousPageUrlUpdater(
6969
r.Resolve<ControllersExecutor>(),

src/Simplify.Web/CHANGELOG.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Changelog
22

3-
## [5.6.0] - 2026-07-24
3+
## [5.7.0] - 2026-07-24
44

55
### Added
66

7-
- `DisablePreviousPageUrlUpdate` setting (default: `true`) to control automatic
8-
previous-page URL cookie tracking. The feature is now disabled by default — the
7+
- `EnablePreviousPageUrlUpdate` setting (default: `false`) to control automatic
8+
previous-page URL cookie tracking. The feature is disabled by default — the
99
`PreviousPageUrlUpdater` decorator is not registered, eliminating both the cookie
1010
write and its entry in the controller-execution call stack.
11-
Set to `false` in `SimplifyWebSettings` to re-enable the previous-page tracking.
12-
Configure via `SimplifyWebSettings:DisablePreviousPageUrlUpdate` in appsettings.json.
11+
Set to `true` in `SimplifyWebSettings` to enable the previous-page tracking.
12+
Configure via `SimplifyWebSettings:EnablePreviousPageUrlUpdate` in appsettings.json.
1313

1414
### Fixed
1515

@@ -19,6 +19,14 @@
1919
- `PreviousPageUrlUpdater`: skip cookie setting when `Response.HasStarted` is true,
2020
preventing a crash when the response stream is already being written.
2121

22+
## [5.6.0] - 2026-07-06
23+
24+
### ⚠️ Bad Release — Do Not Use
25+
26+
This release introduced a `DisablePreviousPageUrlUpdate` setting with inverted
27+
(default: off) semantics. The property was renamed to `EnablePreviousPageUrlUpdate`
28+
and corrected in 5.7.0. See the 5.7.0 entry above.
29+
2230
## [5.5.0] - 2026-07-06
2331

2432
### Added

src/Simplify.Web/Settings/ISimplifyWebSettings.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,12 @@ public interface ISimplifyWebSettings
191191

192192
/// <summary>
193193
/// Gets the value indicating whether the automatic previous page URL update
194-
/// (via cookie) after each request should be disabled.
195-
/// When enabled, Simplify.Web automatically stores the current page URL as the
196-
/// "previous page" URL after each successful request.
197-
/// Disable this if you do not need this functionality or if it conflicts with
198-
/// responses that start writing before the URL can be stored (e.g. <c>StatusCode</c> responses).
199-
/// </summary>
200-
bool DisablePreviousPageUrlUpdate { get; }
194+
/// (via cookie) after each request is enabled.
195+
/// When enabled (default: false), Simplify.Web stores the current page URL as
196+
/// the "previous page" URL after each normal page request.
197+
/// Enable this if you use "back to previous page" redirect functionality.
198+
/// Disabled by default to avoid conflicts with responses that start writing
199+
/// before the URL can be stored (e.g. <c>StatusCode</c> responses).
200+
/// </summary>
201+
bool EnablePreviousPageUrlUpdate { get; }
201202
}

src/Simplify.Web/Settings/SimplifyWebSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ public SimplifyWebSettings(IConfiguration configuration)
217217
public long MaxRequestBodySize { get; private set; } = 104857600;
218218

219219
/// <summary>
220-
/// Gets the value indicating whether the automatic previous page URL update (via cookie) after each request should be disabled.
220+
/// Gets the value indicating whether the automatic previous page URL update (via cookie) after each request is enabled.
221221
/// </summary>
222-
public bool DisablePreviousPageUrlUpdate { get; private set; } = true;
222+
public bool EnablePreviousPageUrlUpdate { get; private set; }
223223

224224
private void LoadLanguageManagerSettings(IConfiguration config)
225225
{
@@ -278,7 +278,7 @@ private void LoadEngineBehaviorSettings(IConfiguration config)
278278
HideExceptionDetails = config.GetValue<bool?>(nameof(HideExceptionDetails)) ?? HideExceptionDetails;
279279
ErrorPageDarkStyle = config.GetValue<bool>(nameof(ErrorPageDarkStyle));
280280
MaxRequestBodySize = config.GetValue<long?>(nameof(MaxRequestBodySize)) ?? MaxRequestBodySize;
281-
DisablePreviousPageUrlUpdate = config.GetValue<bool?>(nameof(DisablePreviousPageUrlUpdate)) ?? DisablePreviousPageUrlUpdate;
281+
EnablePreviousPageUrlUpdate = config.GetValue<bool>(nameof(EnablePreviousPageUrlUpdate));
282282
}
283283

284284
private void LoadCacheSettings(IConfiguration config)

src/Simplify.Web/Simplify.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111

12-
<Version>5.6</Version>
12+
<Version>5.7</Version>
1313

1414
<Description>Lightweight and fast .NET web-framework based on MVC and OWIN</Description>
1515
<Product>Simplify</Product>

0 commit comments

Comments
 (0)