Skip to content

Commit 749d5f2

Browse files
authored
Fix REST links (#3611)
1 parent fcfca90 commit 749d5f2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

www/content/docs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ within the language:
9191
* Now any element, not just the entire window, can be the target for update by the request
9292

9393
Note that when you are using htmx, on the server side you typically respond with *HTML*, not *JSON*. This keeps you firmly
94-
within the [original web programming model](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm),
94+
within the [original web programming model](https://roy.gbiv.com/pubs/dissertation/rest_arch_style.htm),
9595
using [Hypertext As The Engine Of Application State](https://en.wikipedia.org/wiki/HATEOAS)
9696
without even needing to really understand that concept.
9797

@@ -101,7 +101,7 @@ It's worth mentioning that, if you prefer, you can use the [`data-`](https://htm
101101
<a data-hx-post="/click">Click Me!</a>
102102
```
103103

104-
If you understand the concepts around htmx and want to see the quirks of the library, please see our
104+
If you understand the concepts around htmx and want to see the quirks of the library, please see our
105105
[QUIRKS](@/QUIRKS.md) page.
106106

107107
## 1.x to 2.x Migration Guide
@@ -1163,7 +1163,7 @@ If you are using a bundler to manage your javascript (e.g. Webpack, Rollup):
11631163
- Import both packages to your `index.js`
11641164
```JS
11651165
import `htmx.org`;
1166-
import `htmx-ext-extension-name`; // replace `extension-name` with the name of the extension
1166+
import `htmx-ext-extension-name`; // replace `extension-name` with the name of the extension
11671167
```
11681168

11691169
Note: [Idiomorph](/extensions/idiomorph) does not follow the naming convention of htmx extensions. Use `idiomorph` instead of `htmx-ext-idiomorph`. For example, `https://cdn.jsdelivr.net/npm/idiomorph` or `npm install idiomorph`.
@@ -1379,7 +1379,7 @@ Here is an example of the code in action:
13791379

13801380
## Scripting {#scripting}
13811381

1382-
While htmx encourages a hypermedia approach to building web applications, it offers many options for client scripting. Scripting is included in the REST-ful description of web architecture, see: [Code-On-Demand](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm#sec_5_1_7). As much as is feasible, we recommend a [hypermedia-friendly](/essays/hypermedia-friendly-scripting) approach to scripting in your web application:
1382+
While htmx encourages a hypermedia approach to building web applications, it offers many options for client scripting. Scripting is included in the REST-ful description of web architecture, see: [Code-On-Demand](https://roy.gbiv.com/pubs/dissertation/rest_arch_style.htm#sec_5_1_7). As much as is feasible, we recommend a [hypermedia-friendly](/essays/hypermedia-friendly-scripting) approach to scripting in your web application:
13831383

13841384
* [Respect HATEOAS](/essays/hypermedia-friendly-scripting#prime_directive)
13851385
* [Use events to communicate between components](/essays/hypermedia-friendly-scripting#events)
@@ -1697,7 +1697,7 @@ for exploring this topic.
16971697

16981698
### CSRF Prevention
16991699

1700-
The assignment and checking of CSRF tokens are typically backend responsibilities, but `htmx` can support returning the CSRF token automatically with every request using the `hx-headers` attribute. The attribute needs to be added to the element issuing the request or one of its ancestor elements. This makes the `html` and `body` elements effective global vehicles for adding the CSRF token to the `HTTP` request header, as illustrated below.
1700+
The assignment and checking of CSRF tokens are typically backend responsibilities, but `htmx` can support returning the CSRF token automatically with every request using the `hx-headers` attribute. The attribute needs to be added to the element issuing the request or one of its ancestor elements. This makes the `html` and `body` elements effective global vehicles for adding the CSRF token to the `HTTP` request header, as illustrated below.
17011701

17021702
Note: `hx-boost` does not update the `<html>` or `<body>` tags; if using this feature with `hx-boost`, make sure to include the CSRF token on an element that _will_ get replaced. Many web frameworks support automatically inserting the CSRF token as a hidden input in HTML forms. This is encouraged whenever possible.
17031703

@@ -1713,7 +1713,7 @@ Note: `hx-boost` does not update the `<html>` or `<body>` tags; if using this fe
17131713
</body>
17141714
```
17151715

1716-
The above elements are usually unique in an HTML document and should be easy to locate within templates.
1716+
The above elements are usually unique in an HTML document and should be easy to locate within templates.
17171717

17181718

17191719
## Configuring htmx {#config}

0 commit comments

Comments
 (0)