Fix code highlighting (#1102)

This commit is contained in:
Adam McKay 2022-10-29 04:33:58 +01:00 committed by GitHub
parent f7ff6b2c29
commit bc12d80281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ This response header can be used to trigger a client side redirection without re
A sample response would be:
```
```html
HX-Location: /test
```
@ -19,7 +19,7 @@ Which would push the client to test as if the user had clicked on `<a href="/tes
If you want to redirect to a specific target on the page rather than the default of document.body, you can pass more details along with the event, by using JSON for the value of the header:
```
```html
HX-Location: {"path":"/test2", "target":"#testdiv"}
```
Path is required and is url to load the response from. The rest of the data mirrors the [`ajax` api](/api#ajax) context, which is: