File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > ( ) ,
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments