Skip to content

Commit

Permalink
changelog update
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Nov 6, 2024
1 parent 221fc70 commit 2ec7f64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/HTTP/RedirectResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
}
Expand Down

0 comments on commit 2ec7f64

Please sign in to comment.