From 2ec7f6426e3c142b078f704c73f41e945a6577de Mon Sep 17 00:00:00 2001 From: michalsn Date: Wed, 6 Nov 2024 16:06:29 +0100 Subject: [PATCH] changelog update --- CHANGELOG.md | 7 +++++++ src/HTTP/RedirectResponse.php | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa14760..55975e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [2.1.0](https://github.com/michalsn/codeigniter-htmx/compare/v2.0.0...v2.1.0) - 2024-11-06 + +### Enhancements + +- Add an option to disable previous URL storage for HTMX requests. +- Improve `RedirectResponse::hxLocation()` to also work with full URL, which will be auto-transformed to PATH. + ## [2.0.0](https://github.com/michalsn/codeigniter-htmx/compare/v1.6.0...v2.0.0) - 2024-10-17 ### Fixes diff --git a/src/HTTP/RedirectResponse.php b/src/HTTP/RedirectResponse.php index 41b6c89..7ed6796 100644 --- a/src/HTTP/RedirectResponse.php +++ b/src/HTTP/RedirectResponse.php @@ -21,7 +21,6 @@ public function hxLocation( ?array $values = null, ?array $headers = null ): RedirectResponse { - // single_service if (str_starts_with($path, 'http://') || str_starts_with($path, 'https://')) { $path = (string) service('uri', $path, false)->withScheme('')->setHost(''); }