Skip to content

Commit

Permalink
docs: Add note for hxLocation()
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Oct 31, 2024
1 parent 716cc5f commit 6b54c2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/redirect_response.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Sets the `HX-Location` header to redirect without reloading the whole page.
```php
return redirect()->hxLocation('/path');
```
For convenience, the set path with `http(s)://` will be converted to relative. Like this: `http://example.com/articles/` it will become `/articles/`.

For more information, please see [hx-location](https://htmx.org/headers/hx-location/).

Expand Down

0 comments on commit 6b54c2d

Please sign in to comment.